cc: Add TODO's in ScopedGpuRaster.

TestContextProvider returns NULL GrContext now, adding todo's to make
it clear that code path is used only because of that shortcoming.
BUG=

Review URL: https://codereview.chromium.org/396853003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283853 0039d316-1c4b-4281-b951-d872f2087c98
parent bca4b83c
...@@ -30,6 +30,7 @@ void ScopedGpuRaster::BeginGpuRaster() { ...@@ -30,6 +30,7 @@ void ScopedGpuRaster::BeginGpuRaster() {
gl->PushGroupMarkerEXT(0, "GpuRasterization"); gl->PushGroupMarkerEXT(0, "GpuRasterization");
class GrContext* gr_context = context_provider_->GrContext(); class GrContext* gr_context = context_provider_->GrContext();
// TODO(sohanjg): Remove when TestContextProvider gives a GrContext.
if (gr_context) if (gr_context)
gr_context->resetContext(); gr_context->resetContext();
} }
...@@ -38,6 +39,7 @@ void ScopedGpuRaster::EndGpuRaster() { ...@@ -38,6 +39,7 @@ void ScopedGpuRaster::EndGpuRaster() {
GLES2Interface* gl = context_provider_->ContextGL(); GLES2Interface* gl = context_provider_->ContextGL();
class GrContext* gr_context = context_provider_->GrContext(); class GrContext* gr_context = context_provider_->GrContext();
// TODO(sohanjg): Remove when TestContextProvider gives a GrContext.
if (gr_context) if (gr_context)
gr_context->flush(); gr_context->flush();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment