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

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

Issue 547493002: Don't squash layers that have filters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests. Created 6 years, 3 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
« no previous file with comments | « Source/platform/graphics/CompositingReasons.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 "Cannot be squashed as the squashing layer would become too sparse" }, 72 "Cannot be squashed as the squashing layer would become too sparse" },
73 { CompositingReasonSquashingClippingContainerMismatch, 73 { CompositingReasonSquashingClippingContainerMismatch,
74 "squashingClippingContainerMismatch", 74 "squashingClippingContainerMismatch",
75 "Cannot be squashed because this layer has a different clipping containe r than the squashing layer" }, 75 "Cannot be squashed because this layer has a different clipping containe r than the squashing layer" },
76 { CompositingReasonSquashingOpacityAncestorMismatch, 76 { CompositingReasonSquashingOpacityAncestorMismatch,
77 "squashingOpacityAncestorMismatch", 77 "squashingOpacityAncestorMismatch",
78 "Cannot be squashed because this layer has a different opacity ancestor than the squashing layer" }, 78 "Cannot be squashed because this layer has a different opacity ancestor than the squashing layer" },
79 { CompositingReasonSquashingTransformAncestorMismatch, 79 { CompositingReasonSquashingTransformAncestorMismatch,
80 "squashingTransformAncestorMismatch", 80 "squashingTransformAncestorMismatch",
81 "Cannot be squashed because this layer has a different transform ancesto r than the squashing layer" }, 81 "Cannot be squashed because this layer has a different transform ancesto r than the squashing layer" },
82 { CompositingReasonSquashingFilterAncestorMismatch, 82 { CompositingReasonSquashingFilterMismatch,
83 "squashingFilterAncestorMismatch", 83 "squashingFilterAncestorMismatch",
84 "Cannot be squashed because this layer has a different filter ancestor t han the squashing layer" }, 84 "Cannot be squashed because this layer has a different filter ancestor t han the squashing layer, or this layer has a filter" },
85 { CompositingReasonSquashingWouldBreakPaintOrder, 85 { CompositingReasonSquashingWouldBreakPaintOrder,
86 "squashingWouldBreakPaintOrder", 86 "squashingWouldBreakPaintOrder",
87 "Cannot be squashed without breaking paint order" }, 87 "Cannot be squashed without breaking paint order" },
88 { CompositingReasonSquashingVideoIsDisallowed, 88 { CompositingReasonSquashingVideoIsDisallowed,
89 "squashingVideoIsDisallowed", 89 "squashingVideoIsDisallowed",
90 "Squashing video is not supported" }, 90 "Squashing video is not supported" },
91 { CompositingReasonSquashedLayerClipsCompositingDescendants, 91 { CompositingReasonSquashedLayerClipsCompositingDescendants,
92 "squashedLayerClipsCompositingDescendants", 92 "squashedLayerClipsCompositingDescendants",
93 "Squashing a layer that clips composited descendants is not supported." }, 93 "Squashing a layer that clips composited descendants is not supported." },
94 { CompositingReasonSquashingRenderPartIsDisallowed, 94 { CompositingReasonSquashingRenderPartIsDisallowed,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 "layerForScrollingBlockSelection", 182 "layerForScrollingBlockSelection",
183 "Secondary layer, to house block selection gaps for composited scrolling with no scrolling contents" }, 183 "Secondary layer, to house block selection gaps for composited scrolling with no scrolling contents" },
184 { CompositingReasonInlineTransform, 184 { CompositingReasonInlineTransform,
185 "inlineTransform", 185 "inlineTransform",
186 "Has an inline transform, which causes subsequent layers to assume overl ap" }, 186 "Has an inline transform, which causes subsequent layers to assume overl ap" },
187 }; 187 };
188 188
189 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa p); 189 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa p);
190 190
191 } // namespace blink 191 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/CompositingReasons.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698