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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 1194623003: cc: Remove contents_texture_manager from LayerTreeHost(Impl) and proxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentstexturemanager: rebase Created 5 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
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/single_thread_proxy.h » ('j') | 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 16ddc1d76c73931c38c2f60ad4975dc7d91f1a79..fe2e9580429b4a67993ceb018d336af84da816fd 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -57,7 +57,6 @@ LayerTreeImpl::LayerTreeImpl(
max_page_scale_factor_(0),
elastic_overscroll_(elastic_overscroll),
scrolling_layer_id_from_previous_tree_(0),
- contents_textures_purged_(false),
viewport_size_invalid_(false),
needs_update_draw_properties_(true),
needs_full_tree_sync_(true),
@@ -235,11 +234,6 @@ void LayerTreeImpl::PushPropertiesTo(LayerTreeImpl* target_tree) {
target_tree->set_background_color(background_color());
target_tree->set_has_transparent_background(has_transparent_background());
- if (ContentsTexturesPurged())
- target_tree->SetContentsTexturesPurged();
- else
- target_tree->ResetContentsTexturesPurged();
-
if (ViewportSizeInvalid())
target_tree->SetViewportSizeInvalid();
else
@@ -797,24 +791,6 @@ void LayerTreeImpl::DidBecomeActive() {
source_frame_number_);
}
-bool LayerTreeImpl::ContentsTexturesPurged() const {
- return contents_textures_purged_;
-}
-
-void LayerTreeImpl::SetContentsTexturesPurged() {
- if (contents_textures_purged_)
- return;
- contents_textures_purged_ = true;
- layer_tree_host_impl_->OnCanDrawStateChangedForTree();
-}
-
-void LayerTreeImpl::ResetContentsTexturesPurged() {
- if (!contents_textures_purged_)
- return;
- contents_textures_purged_ = false;
- layer_tree_host_impl_->OnCanDrawStateChangedForTree();
-}
-
bool LayerTreeImpl::RequiresHighResToDraw() const {
return layer_tree_host_impl_->RequiresHighResToDraw();
}
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698