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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 290573007: cc: Move gpu rasterization flag from tree-impl to tree-host-impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated unittests 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
« cc/layers/picture_layer_impl.cc ('K') | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index a4d5cab9f94bf866f23e8d35e6fcfa9b107eb0ee..abd11f11f02b0c927c8f94118026d092a4e7f385 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -96,7 +96,6 @@ LayerTreeImpl::LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl)
min_page_scale_factor_(0),
max_page_scale_factor_(0),
scrolling_layer_id_from_previous_tree_(0),
- use_gpu_rasterization_(false),
contents_textures_purged_(false),
requires_high_res_to_draw_(false),
viewport_size_invalid_(false),
@@ -449,14 +448,6 @@ void LayerTreeImpl::ClearViewportLayers() {
outer_viewport_scroll_layer_ = NULL;
}
-void LayerTreeImpl::SetUseGpuRasterization(bool use_gpu) {
- if (use_gpu == use_gpu_rasterization_)
- return;
-
- use_gpu_rasterization_ = use_gpu;
- ReleaseResources();
-}
-
void LayerTreeImpl::UpdateDrawProperties() {
needs_update_draw_properties_ = false;
render_surface_layer_list_.clear();
@@ -757,6 +748,10 @@ void LayerTreeImpl::DidAnimateScrollOffset() {
layer_tree_host_impl_->DidAnimateScrollOffset();
}
+bool LayerTreeImpl::use_gpu_rasterization() const {
+ return layer_tree_host_impl_->use_gpu_rasterization();
+}
+
void LayerTreeImpl::SetNeedsRedraw() {
layer_tree_host_impl_->SetNeedsRedraw();
}
« cc/layers/picture_layer_impl.cc ('K') | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698