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

Unified Diff: ui/compositor/layer.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Add more tests to surface_aggregator. 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 358310bf15e207a0904cc605ff688e7dd257677d..ca39a6e28d7d991bed83900316f1c7bc2eadcc59 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -654,6 +654,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<viz::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