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

Unified Diff: cc/layer.h

Issue 11567034: Changes subtreeShouldRenderToSeparateSurface logic to account for explicit clipping (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding a unit test and renaming adding a unit test and renaming can_clip_self" Created 8 years 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/layer.h
diff --git a/cc/layer.h b/cc/layer.h
index 2be73c220a07f1db8c00243d3a95d9d446faa5cf..af2ac3ff58c1c5c402edbbe1a5bf21e47e9fb334 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -282,6 +282,8 @@ public:
// canvas that doesn't want to be triple-buffered across all three trees.
virtual bool blocksPendingCommit() const;
+ virtual bool canClipSelf() const { return false; }
+
protected:
friend class LayerImpl;
friend class TreeSynchronizer;

Powered by Google App Engine
This is Rietveld 408576698