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

Unified Diff: ui/compositor/layer.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Fix compile error. Created 3 years, 5 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/layer_tree_host_common_unittest.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 b48c8a38d70f45f8bd687dd0746ccbd777825423..f06e1781cb08672c6cb08f489c4de8b79358efad 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/layer_tree_host_common_unittest.cc ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698