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

Unified Diff: ui/compositor/layer.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Reduce unneeded code in surface aggregator and add more test. 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
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 6219155494ad1afcc51a7e08f43bc65a9780edf3..05eac17a647f78fcf1502a50e7d24668f5edb469 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 viz::TextureMailbox& mailbox,
std::unique_ptr<cc::SingleReleaseCallback> release_callback,
« components/viz/service/display/surface_aggregator_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