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

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, keeping the forwarding include 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 CompositingReasonNone = 0, 84 CompositingReasonNone = 0,
85 85
86 // Intrinsic reasons that can be known right away by the layer 86 // Intrinsic reasons that can be known right away by the layer
87 CompositingReason3DTransform = 1 << 0, 87 CompositingReason3DTransform = 1 << 0,
88 CompositingReasonVideo = 1 << 1, 88 CompositingReasonVideo = 1 << 1,
89 CompositingReasonCanvas = 1 << 2, 89 CompositingReasonCanvas = 1 << 2,
90 CompositingReasonPlugin = 1 << 3, 90 CompositingReasonPlugin = 1 << 3,
91 CompositingReasonIFrame = 1 << 4, 91 CompositingReasonIFrame = 1 << 4,
92 CompositingReasonBackfaceVisibilityHidden = 1 << 5, 92 CompositingReasonBackfaceVisibilityHidden = 1 << 5,
93 CompositingReasonAnimation = 1 << 6, 93 CompositingReasonAnimation = 1 << 6,
94 CompositingReasonTransition = 1 << 7, 94 CompositingReasonFilters = 1 << 7,
95 CompositingReasonFilters = 1 << 8, 95 CompositingReasonPositionFixed = 1 << 8,
96 CompositingReasonPositionFixed = 1 << 9, 96 CompositingReasonPositionSticky = 1 << 9,
97 CompositingReasonPositionSticky = 1 << 10, 97 CompositingReasonOverflowScrollingTouch = 1 << 10,
98 CompositingReasonOverflowScrollingTouch = 1 << 11, 98 CompositingReasonBlending = 1 << 11,
99 CompositingReasonBlending = 1 << 12,
100 99
101 // Overlap reasons that require knowing what's behind you in paint-order bef ore knowing the answer 100 // Overlap reasons that require knowing what's behind you in paint-order bef ore knowing the answer
102 CompositingReasonAssumedOverlap = 1 << 13, 101 CompositingReasonAssumedOverlap = 1 << 12,
103 CompositingReasonOverlap = 1 << 14, 102 CompositingReasonOverlap = 1 << 13,
104 CompositingReasonNegativeZIndexChildren = 1 << 15, 103 CompositingReasonNegativeZIndexChildren = 1 << 14,
105 104
106 // Subtree reasons that require knowing what the status of your subtree is b efore knowing the answer 105 // Subtree reasons that require knowing what the status of your subtree is b efore knowing the answer
107 CompositingReasonTransformWithCompositedDescendants = 1 << 16, 106 CompositingReasonTransformWithCompositedDescendants = 1 << 15,
108 CompositingReasonOpacityWithCompositedDescendants = 1 << 17, 107 CompositingReasonOpacityWithCompositedDescendants = 1 << 16,
109 CompositingReasonMaskWithCompositedDescendants = 1 << 18, 108 CompositingReasonMaskWithCompositedDescendants = 1 << 17,
110 CompositingReasonReflectionWithCompositedDescendants = 1 << 19, 109 CompositingReasonReflectionWithCompositedDescendants = 1 << 18,
111 CompositingReasonFilterWithCompositedDescendants = 1 << 20, 110 CompositingReasonFilterWithCompositedDescendants = 1 << 19,
112 CompositingReasonBlendingWithCompositedDescendants = 1 << 21, 111 CompositingReasonBlendingWithCompositedDescendants = 1 << 20,
113 CompositingReasonClipsCompositingDescendants = 1 << 22, 112 CompositingReasonClipsCompositingDescendants = 1 << 21,
114 CompositingReasonPerspective = 1 << 23, 113 CompositingReasonPerspective = 1 << 22,
115 CompositingReasonPreserve3D = 1 << 24, 114 CompositingReasonPreserve3D = 1 << 23,
116 CompositingReasonReflectionOfCompositedParent = 1 << 25, 115 CompositingReasonReflectionOfCompositedParent = 1 << 24,
117 116
118 // The root layer is a special case that may be forced to be a layer, but al so it needs to be 117 // 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. 118 // a layer if anything else in the subtree is composited.
120 CompositingReasonRoot = 1 << 26 119 CompositingReasonRoot = 1 << 25,
120
121 // RenderLayerBacking internal hierarchy reasons
122 CompositingReasonLayerForClip = 1 << 26,
123 CompositingReasonLayerForScrollbar = 1 << 27,
124 CompositingReasonLayerForScrollingContainer = 1 << 28,
125 CompositingReasonLayerForForeground = 1 << 29,
126 CompositingReasonLayerForBackground = 1 << 30,
127 CompositingReasonLayerForMask = 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 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1350
1342 } // namespace WebCore 1351 } // namespace WebCore
1343 1352
1344 #ifndef NDEBUG 1353 #ifndef NDEBUG
1345 // Outside the WebCore namespace for ease of invocation from gdb. 1354 // Outside the WebCore namespace for ease of invocation from gdb.
1346 void showLayerTree(const WebCore::RenderLayer*); 1355 void showLayerTree(const WebCore::RenderLayer*);
1347 void showLayerTree(const WebCore::RenderObject*); 1356 void showLayerTree(const WebCore::RenderObject*);
1348 #endif 1357 #endif
1349 1358
1350 #endif // RenderLayer_h 1359 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/GraphicsLayer.cpp ('k') | Source/core/rendering/RenderLayerBacking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698