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

Unified Diff: ui/compositor/layer.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Fix for comments in patch 4. Created 3 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
« cc/trees/damage_tracker.cc ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 3a2aa4fc0a72a329c02ea4b51ec4eb194a146bce..6161e9aebc0ea14ca3d7159824b83ed0b0edb856 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -642,6 +642,10 @@ void Layer::SwitchCCLayerForTest() {
content_layer_ = new_layer;
}
+void Layer::SetCacheRenderSurface(bool cache_render_surface) {
+ cc_layer_->SetCacheRenderSurface(cache_render_surface);
+}
+
void Layer::SetTextureMailbox(
const cc::TextureMailbox& mailbox,
std::unique_ptr<cc::SingleReleaseCallback> release_callback,
« cc/trees/damage_tracker.cc ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698