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

Side by Side Diff: Source/core/rendering/RenderLayer.h

Issue 15181006: Plumb CompositingReason from Blink to compositor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed reviewer feedback Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 CompositingReasonReflectionWithCompositedDescendants = 1 << 19, 110 CompositingReasonReflectionWithCompositedDescendants = 1 << 19,
111 CompositingReasonFilterWithCompositedDescendants = 1 << 20, 111 CompositingReasonFilterWithCompositedDescendants = 1 << 20,
112 CompositingReasonBlendingWithCompositedDescendants = 1 << 21, 112 CompositingReasonBlendingWithCompositedDescendants = 1 << 21,
113 CompositingReasonClipsCompositingDescendants = 1 << 22, 113 CompositingReasonClipsCompositingDescendants = 1 << 22,
114 CompositingReasonPerspective = 1 << 23, 114 CompositingReasonPerspective = 1 << 23,
115 CompositingReasonPreserve3D = 1 << 24, 115 CompositingReasonPreserve3D = 1 << 24,
116 CompositingReasonReflectionOfCompositedParent = 1 << 25, 116 CompositingReasonReflectionOfCompositedParent = 1 << 25,
117 117
118 // The root layer is a special case that may be forced to be a layer, but al so it needs to be 118 // The root layer is a special case that may be forced to be a layer, but al so it needs to be
119 // a layer if anything else in the subtree is composited. 119 // a layer if anything else in the subtree is composited.
120 CompositingReasonRoot = 1 << 26 120 CompositingReasonRoot = 1 << 26,
121
122 // RenderLayerBacking internal hierarchy reasons
123 CompositingReasonLayerForClip = 1 << 27,
124 CompositingReasonLayerForDescendantClip = 1 << 28,
125 CompositingReasonLayerForScrollbar = 1 << 29,
126 CompositingReasonLayerForScrollingContainer = 1 << 30,
127 CompositingReasonLayerForForeground = 1 << 31
128
129 // Note: if you add more reasons here, you will need to update the WebCompos itingReasons enum as well.
121 }; 130 };
122 typedef unsigned CompositingReasons; 131 typedef unsigned CompositingReasons;
123 132
124 class ClipRect { 133 class ClipRect {
125 public: 134 public:
126 ClipRect() 135 ClipRect()
127 : m_hasRadius(false) 136 : m_hasRadius(false)
128 { } 137 { }
129 138
130 ClipRect(const LayoutRect& rect) 139 ClipRect(const LayoutRect& rect)
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 1354
1346 } // namespace WebCore 1355 } // namespace WebCore
1347 1356
1348 #ifndef NDEBUG 1357 #ifndef NDEBUG
1349 // Outside the WebCore namespace for ease of invocation from gdb. 1358 // Outside the WebCore namespace for ease of invocation from gdb.
1350 void showLayerTree(const WebCore::RenderLayer*); 1359 void showLayerTree(const WebCore::RenderLayer*);
1351 void showLayerTree(const WebCore::RenderObject*); 1360 void showLayerTree(const WebCore::RenderObject*);
1352 #endif 1361 #endif
1353 1362
1354 #endif // RenderLayer_h 1363 #endif // RenderLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698