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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 270823003: cc: Move gpu rasterization flag from LayerImpl to LayerTreeImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: inline use-gpu-rasterization Created 6 years, 7 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: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index bc488db3c54c7bf96bc4edf7b8e479841695be49..56f4ea2e89fc83f82ab288d2807ea5b688d17ddb 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -163,6 +163,11 @@ class CC_EXPORT LayerTreeImpl {
}
float sent_page_scale_delta() const { return sent_page_scale_delta_; }
+ void set_use_gpu_rasterization(bool use_gpu) {
+ use_gpu_rasterization_ = use_gpu;
+ }
+ bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
+
// Updates draw properties and render surface layer list, as well as tile
// priorities.
void UpdateDrawProperties();
@@ -282,6 +287,7 @@ class CC_EXPORT LayerTreeImpl {
// frame. Used for rendering and input event hit testing.
LayerImplList render_surface_layer_list_;
+ bool use_gpu_rasterization_;
bool contents_textures_purged_;
bool requires_high_res_to_draw_;
bool viewport_size_invalid_;

Powered by Google App Engine
This is Rietveld 408576698