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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 326283002: Accelerate small canvases if Ganesh is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 6 years, 6 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
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index f1f6101c2d1422c07ff1b10c9d6f021ef7a8c7f0..f974828d94a1916a305bc8849e147573a6c1fd56 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -710,4 +710,8 @@ void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
}
+bool RenderWidgetCompositor::usesGpuRasterization() {
+ return layer_tree_host_->UseGpuRasterization();
+}
+
} // namespace content
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/test/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698