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

Unified Diff: cc/layer_impl.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_impl.h
diff --git a/cc/layer_impl.h b/cc/layer_impl.h
index 889e1e11eba85ec828d7711fe586c53fec73b724..06c776ff7b42e5877338e0c8435dd870528303e5 100644
--- a/cc/layer_impl.h
+++ b/cc/layer_impl.h
@@ -281,6 +281,8 @@ public:
gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
+ virtual bool canClipSelf() const { return false; }
+
protected:
LayerImpl(LayerTreeImpl* layerImpl, int);

Powered by Google App Engine
This is Rietveld 408576698