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

Unified Diff: ui/compositor/layer.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Improve with comment in patch 18. 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/damage_tracker_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 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);
danakj 2017/07/28 22:22:58 You should leave a comment explaining why Clone()
danakj 2017/07/28 22:32:45 Adding a comment to explain why not propogated to
wutao 2017/07/28 23:38:58 Added a comment and two tests for cloning and swit
+}
+
void Layer::SetTextureMailbox(
const viz::TextureMailbox& mailbox,
std::unique_ptr<viz::SingleReleaseCallback> release_callback,
« cc/trees/damage_tracker_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