Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: cc/resources/scoped_gpu_raster.cc

Issue 396853003: cc: Add TODO's in ScopedGpuRaster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add space for presubmit check. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698