| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 "Cannot be squashed because this layer has a different filter ancestor t
han the squashing layer, or this layer has a filter" }, | 87 "Cannot be squashed because this layer has a different filter ancestor t
han the squashing layer, or this layer has a filter" }, |
| 88 { CompositingReasonSquashingWouldBreakPaintOrder, | 88 { CompositingReasonSquashingWouldBreakPaintOrder, |
| 89 "squashingWouldBreakPaintOrder", | 89 "squashingWouldBreakPaintOrder", |
| 90 "Cannot be squashed without breaking paint order" }, | 90 "Cannot be squashed without breaking paint order" }, |
| 91 { CompositingReasonSquashingVideoIsDisallowed, | 91 { CompositingReasonSquashingVideoIsDisallowed, |
| 92 "squashingVideoIsDisallowed", | 92 "squashingVideoIsDisallowed", |
| 93 "Squashing video is not supported" }, | 93 "Squashing video is not supported" }, |
| 94 { CompositingReasonSquashedLayerClipsCompositingDescendants, | 94 { CompositingReasonSquashedLayerClipsCompositingDescendants, |
| 95 "squashedLayerClipsCompositingDescendants", | 95 "squashedLayerClipsCompositingDescendants", |
| 96 "Squashing a layer that clips composited descendants is not supported."
}, | 96 "Squashing a layer that clips composited descendants is not supported."
}, |
| 97 { CompositingReasonSquashingRenderPartIsDisallowed, | 97 { CompositingReasonSquashingLayoutPartIsDisallowed, |
| 98 "squashingRenderPartIsDisallowed", | 98 "squashingLayoutPartIsDisallowed", |
| 99 "Squashing a frame, iframe or plugin is not supported." }, | 99 "Squashing a frame, iframe or plugin is not supported." }, |
| 100 { CompositingReasonSquashingReflectionIsDisallowed, | 100 { CompositingReasonSquashingReflectionIsDisallowed, |
| 101 "squashingReflectionDisallowed", | 101 "squashingReflectionDisallowed", |
| 102 "Squashing a element with a reflection is not supported." }, | 102 "Squashing a element with a reflection is not supported." }, |
| 103 { CompositingReasonSquashingBlendingIsDisallowed, | 103 { CompositingReasonSquashingBlendingIsDisallowed, |
| 104 "squashingBlendingDisallowed", | 104 "squashingBlendingDisallowed", |
| 105 "Squashing a layer with blending is not supported." }, | 105 "Squashing a layer with blending is not supported." }, |
| 106 { CompositingReasonTransformWithCompositedDescendants, | 106 { CompositingReasonTransformWithCompositedDescendants, |
| 107 "transformWithCompositedDescendants", | 107 "transformWithCompositedDescendants", |
| 108 "Has a transform that needs to be known by compositor because of composi
ted descendants" }, | 108 "Has a transform that needs to be known by compositor because of composi
ted descendants" }, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 "layerForScrollingBlockSelection", | 188 "layerForScrollingBlockSelection", |
| 189 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, | 189 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, |
| 190 { CompositingReasonInlineTransform, | 190 { CompositingReasonInlineTransform, |
| 191 "inlineTransform", | 191 "inlineTransform", |
| 192 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, | 192 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); | 195 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); |
| 196 | 196 |
| 197 } // namespace blink | 197 } // namespace blink |
| OLD | NEW |