| Index: cc/resources/scoped_gpu_raster.cc
|
| diff --git a/cc/resources/scoped_gpu_raster.cc b/cc/resources/scoped_gpu_raster.cc
|
| index 380063f13ae3137e85056da224a3729f08fd72cf..517c7a7d81465371729cda5f4b2ca99aaa97917e 100644
|
| --- a/cc/resources/scoped_gpu_raster.cc
|
| +++ b/cc/resources/scoped_gpu_raster.cc
|
| @@ -30,6 +30,7 @@ void ScopedGpuRaster::BeginGpuRaster() {
|
| gl->PushGroupMarkerEXT(0, "GpuRasterization");
|
|
|
| class GrContext* gr_context = context_provider_->GrContext();
|
| + // TODO(sohanjg): Remove when TestContextProvider gives a GrContext.
|
| if (gr_context)
|
| gr_context->resetContext();
|
| }
|
| @@ -38,6 +39,7 @@ void ScopedGpuRaster::EndGpuRaster() {
|
| GLES2Interface* gl = context_provider_->ContextGL();
|
|
|
| class GrContext* gr_context = context_provider_->GrContext();
|
| + // TODO(sohanjg): Remove when TestContextProvider gives a GrContext.
|
| if (gr_context)
|
| gr_context->flush();
|
|
|
|
|