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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 250803013: Don't clear render surfaces unnecessarily. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: cc/trees/layer_tree_host_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index 20b2163da11f1845d3f6a0a968a26e918d1d9a0a..ba5d579a5de7ec9a3ca178f434abc71b7621c951 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -139,6 +139,11 @@ class CC_EXPORT LayerTreeHostCommon {
return children[index];
}
+ static LayerImpl* get_child_as_raw_ptr(const LayerImplList& children,
danakj 2014/04/25 22:59:24 Would you mind doing a followup CL to rename all t
Ian Vollick 2014/04/25 23:14:39 Totally.
+ size_t index) {
+ return children[index];
+ }
+
struct ScrollUpdateInfo {
int layer_id;
gfx::Vector2d scroll_delta;

Powered by Google App Engine
This is Rietveld 408576698