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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CompositingReasons.cpp

Issue 1730653002: Move squash preventing reasons out of compositing reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug and test fixes. Created 4 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/graphics/CompositingReasons.h" 5 #include "platform/graphics/CompositingReasons.h"
6 6
7 #include "wtf/StdLibExtras.h" 7 #include "wtf/StdLibExtras.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 "Has a CompositorProxy object" }, 62 "Has a CompositorProxy object" },
63 { CompositingReasonAssumedOverlap, 63 { CompositingReasonAssumedOverlap,
64 "assumedOverlap", 64 "assumedOverlap",
65 "Might overlap other composited content" }, 65 "Might overlap other composited content" },
66 { CompositingReasonOverlap, 66 { CompositingReasonOverlap,
67 "overlap", 67 "overlap",
68 "Overlaps other composited content" }, 68 "Overlaps other composited content" },
69 { CompositingReasonNegativeZIndexChildren, 69 { CompositingReasonNegativeZIndexChildren,
70 "negativeZIndexChildren", 70 "negativeZIndexChildren",
71 "Parent with composited negative z-index content" }, 71 "Parent with composited negative z-index content" },
72 { CompositingReasonScrollsWithRespectToSquashingLayer, 72 { CompositingReasonSquashingDisallowed,
73 "scrollsWithRespectToSquashingLayer", 73 "squashingDisallowed",
74 "Cannot be squashed since this layer scrolls with respect to the squashi ng layer" }, 74 "Layer was separately composited because it could not be squashed." },
75 { CompositingReasonSquashingSparsityExceeded,
76 "squashingSparsityExceeded",
77 "Cannot be squashed as the squashing layer would become too sparse" },
78 { CompositingReasonSquashingClippingContainerMismatch,
79 "squashingClippingContainerMismatch",
80 "Cannot be squashed because this layer has a different clipping containe r than the squashing layer" },
81 { CompositingReasonSquashingOpacityAncestorMismatch,
82 "squashingOpacityAncestorMismatch",
83 "Cannot be squashed because this layer has a different opacity ancestor than the squashing layer" },
84 { CompositingReasonSquashingTransformAncestorMismatch,
85 "squashingTransformAncestorMismatch",
86 "Cannot be squashed because this layer has a different transform ancesto r than the squashing layer" },
87 { CompositingReasonSquashingFilterMismatch,
88 "squashingFilterAncestorMismatch",
89 "Cannot be squashed because this layer has a different filter ancestor t han the squashing layer, or this layer has a filter" },
90 { CompositingReasonSquashingWouldBreakPaintOrder,
91 "squashingWouldBreakPaintOrder",
92 "Cannot be squashed without breaking paint order" },
93 { CompositingReasonSquashingVideoIsDisallowed,
94 "squashingVideoIsDisallowed",
95 "Squashing video is not supported" },
96 { CompositingReasonSquashedLayerClipsCompositingDescendants,
97 "squashedLayerClipsCompositingDescendants",
98 "Squashing a layer that clips composited descendants is not supported." },
99 { CompositingReasonSquashingLayoutPartIsDisallowed,
100 "squashingLayoutPartIsDisallowed",
101 "Squashing a frame, iframe or plugin is not supported." },
102 { CompositingReasonSquashingReflectionIsDisallowed,
103 "squashingReflectionDisallowed",
104 "Squashing a element with a reflection is not supported." },
105 { CompositingReasonSquashingBlendingIsDisallowed,
106 "squashingBlendingDisallowed",
107 "Squashing a layer with blending is not supported." },
108 { CompositingReasonSquashingNearestFixedPositionMismatch,
109 "squashingNearestFixedPositionMismatch",
110 "Cannot be squashed because this layer has a different nearest fixed pos ition layer than the squashing layer" },
111 { CompositingReasonScrollChildWithCompositedDescendants,
112 "scrollChildWithCompositedDescendants",
113 "Squashing a scroll child with composited descendants is not supported." },
114 { CompositingReasonSquashingLayerIsAnimating,
115 "squashingLayerIsAnimating",
116 "Cannot squash into a layer that is animating." },
117 { CompositingReasonTransformWithCompositedDescendants, 75 { CompositingReasonTransformWithCompositedDescendants,
118 "transformWithCompositedDescendants", 76 "transformWithCompositedDescendants",
119 "Has a transform that needs to be known by compositor because of composi ted descendants" }, 77 "Has a transform that needs to be known by compositor because of composi ted descendants" },
120 { CompositingReasonOpacityWithCompositedDescendants, 78 { CompositingReasonOpacityWithCompositedDescendants,
121 "opacityWithCompositedDescendants", 79 "opacityWithCompositedDescendants",
122 "Has opacity that needs to be applied by compositor because of composite d descendants" }, 80 "Has opacity that needs to be applied by compositor because of composite d descendants" },
123 { CompositingReasonMaskWithCompositedDescendants, 81 { CompositingReasonMaskWithCompositedDescendants,
124 "maskWithCompositedDescendants", 82 "maskWithCompositedDescendants",
125 "Has a mask that needs to be known by compositor because of composited d escendants" }, 83 "Has a mask that needs to be known by compositor because of composited d escendants" },
126 { CompositingReasonReflectionWithCompositedDescendants, 84 { CompositingReasonReflectionWithCompositedDescendants,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 "layerForScrollingBlockSelection", 160 "layerForScrollingBlockSelection",
203 "Secondary layer, to house block selection gaps for composited scrolling with no scrolling contents" }, 161 "Secondary layer, to house block selection gaps for composited scrolling with no scrolling contents" },
204 { CompositingReasonInlineTransform, 162 { CompositingReasonInlineTransform,
205 "inlineTransform", 163 "inlineTransform",
206 "Has an inline transform, which causes subsequent layers to assume overl ap" }, 164 "Has an inline transform, which causes subsequent layers to assume overl ap" },
207 }; 165 };
208 166
209 const size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonSt ringMap); 167 const size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonSt ringMap);
210 168
211 } // namespace blink 169 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698