| OLD | NEW |
| 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 "config.h" | 5 #include "config.h" |
| 6 #include "platform/graphics/CompositingReasons.h" | 6 #include "platform/graphics/CompositingReasons.h" |
| 7 | 7 |
| 8 #include "wtf/StdLibExtras.h" | 8 #include "wtf/StdLibExtras.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 "Cannot be squashed because this layer has a different filter ancestor t
han the squashing layer" }, | 78 "Cannot be squashed because this layer has a different filter ancestor t
han the squashing layer" }, |
| 79 { CompositingReasonSquashingWouldBreakPaintOrder, | 79 { CompositingReasonSquashingWouldBreakPaintOrder, |
| 80 "squashingWouldBreakPaintOrder", | 80 "squashingWouldBreakPaintOrder", |
| 81 "Cannot be squashed without breaking paint order" }, | 81 "Cannot be squashed without breaking paint order" }, |
| 82 { CompositingReasonSquashingVideoIsDisallowed, | 82 { CompositingReasonSquashingVideoIsDisallowed, |
| 83 "squashingVideoIsDisallowed", | 83 "squashingVideoIsDisallowed", |
| 84 "Squashing video is not supported" }, | 84 "Squashing video is not supported" }, |
| 85 { CompositingReasonSquashedLayerClipsCompositingDescendants, | 85 { CompositingReasonSquashedLayerClipsCompositingDescendants, |
| 86 "squashedLayerClipsCompositingDescendants", | 86 "squashedLayerClipsCompositingDescendants", |
| 87 "Squashing a layer that clips composited descendants is not supported."
}, | 87 "Squashing a layer that clips composited descendants is not supported."
}, |
| 88 { CompositingReasonSquashingRenderPartIsDisallowed, | |
| 89 "squashingRenderPartIsDisallowed", | |
| 90 "Squashing a frame, iframe or plugin is not supported." }, | |
| 91 { CompositingReasonTransformWithCompositedDescendants, | 88 { CompositingReasonTransformWithCompositedDescendants, |
| 92 "transformWithCompositedDescendants", | 89 "transformWithCompositedDescendants", |
| 93 "Has a transform that needs to be known by compositor because of composi
ted descendants" }, | 90 "Has a transform that needs to be known by compositor because of composi
ted descendants" }, |
| 94 { CompositingReasonOpacityWithCompositedDescendants, | 91 { CompositingReasonOpacityWithCompositedDescendants, |
| 95 "opacityWithCompositedDescendants", | 92 "opacityWithCompositedDescendants", |
| 96 "Has opacity that needs to be applied by compositor because of composite
d descendants" }, | 93 "Has opacity that needs to be applied by compositor because of composite
d descendants" }, |
| 97 { CompositingReasonMaskWithCompositedDescendants, | 94 { CompositingReasonMaskWithCompositedDescendants, |
| 98 "maskWithCompositedDescendants", | 95 "maskWithCompositedDescendants", |
| 99 "Has a mask that needs to be known by compositor because of composited d
escendants" }, | 96 "Has a mask that needs to be known by compositor because of composited d
escendants" }, |
| 100 { CompositingReasonFilterWithCompositedDescendants, | 97 { CompositingReasonFilterWithCompositedDescendants, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 "layerForScrollingBlockSelection", | 164 "layerForScrollingBlockSelection", |
| 168 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, | 165 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, |
| 169 { CompositingReasonInlineTransform, | 166 { CompositingReasonInlineTransform, |
| 170 "inlineTransform", | 167 "inlineTransform", |
| 171 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, | 168 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, |
| 172 }; | 169 }; |
| 173 | 170 |
| 174 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); | 171 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); |
| 175 | 172 |
| 176 } // namespace blink | 173 } // namespace blink |
| OLD | NEW |