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

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: rebase 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
« no previous file with comments | « 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 f76d959a43660f908e1fc3cae8447a84741a725b..ec1a1033857a32ef1109e2832672c69dcbe3059c 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -82,7 +82,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),
@@ -441,14 +440,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();
@@ -749,6 +740,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();
}
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698