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

Unified Diff: content/renderer/render_thread_impl.h

Issue 181063022: cc: Trigger GPU rasterization based on a per-layer hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move flags to RenderThreadImpl Created 6 years, 9 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/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index ca22017994b23c9c5f9beb3492a4ab0f40b6403d..9b449f492ec61c1136242a7edae157131c05d600 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -195,6 +195,22 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
return compositor_message_loop_proxy_;
}
+ bool is_gpu_rasterization_enabled() const {
+ return is_gpu_rasterization_enabled_;
+ }
+
+ bool is_hybrid_rasterization_enabled() const {
+ return is_hybrid_rasterization_enabled_;
+ }
+
+ bool is_impl_side_painting_enabled() const {
+ return is_impl_side_painting_enabled_;
+ }
+
+ bool is_lcd_text_enabled() const { return is_lcd_text_enabled_; }
+
+ bool is_map_image_enabled() const { return is_map_image_enabled_; }
+
AppCacheDispatcher* appcache_dispatcher() const {
return appcache_dispatcher_.get();
}
@@ -504,6 +520,13 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
// backed GpuMemoryBuffers prevent this. crbug.com/325045
base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
+ // Compositor settings
+ bool is_gpu_rasterization_enabled_;
+ bool is_hybrid_rasterization_enabled_;
+ bool is_impl_side_painting_enabled_;
+ bool is_lcd_text_enabled_;
+ bool is_map_image_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
};

Powered by Google App Engine
This is Rietveld 408576698