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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/SquashingDisallowedReasons.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, 10 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/SquashingDisallowedReasons.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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "platform/graphics/SquashingDisallowedReasons.h"
6
7 #include "wtf/StdLibExtras.h"
8
9 namespace blink {
10
11 const SquashingDisallowedReasonStringMap kSquashingDisallowedReasonStringMap[] = {
12 { SquashingDisallowedReasonScrollsWithRespectToSquashingLayer,
13 "scrollsWithRespectToSquashingLayer",
14 "Cannot be squashed since this layer scrolls with respect to the squashi ng layer" },
15 { SquashingDisallowedReasonSquashingSparsityExceeded,
16 "squashingSparsityExceeded",
17 "Cannot be squashed as the squashing layer would become too sparse" },
18 { SquashingDisallowedReasonClippingContainerMismatch,
19 "squashingClippingContainerMismatch",
20 "Cannot be squashed because this layer has a different clipping containe r than the squashing layer" },
21 { SquashingDisallowedReasonOpacityAncestorMismatch,
22 "squashingOpacityAncestorMismatch",
23 "Cannot be squashed because this layer has a different opacity ancestor than the squashing layer" },
24 { SquashingDisallowedReasonTransformAncestorMismatch,
25 "squashingTransformAncestorMismatch",
26 "Cannot be squashed because this layer has a different transform ancesto r than the squashing layer" },
27 { SquashingDisallowedReasonFilterMismatch,
28 "squashingFilterAncestorMismatch",
29 "Cannot be squashed because this layer has a different filter ancestor t han the squashing layer, or this layer has a filter" },
30 { SquashingDisallowedReasonWouldBreakPaintOrder,
31 "squashingWouldBreakPaintOrder",
32 "Cannot be squashed without breaking paint order" },
33 { SquashingDisallowedReasonSquashingVideoIsDisallowed,
34 "squashingVideoIsDisallowed",
35 "Squashing video is not supported" },
36 { SquashingDisallowedReasonSquashedLayerClipsCompositingDescendants,
37 "squashedLayerClipsCompositingDescendants",
38 "Squashing a layer that clips composited descendants is not supported." },
39 { SquashingDisallowedReasonSquashingLayoutPartIsDisallowed,
40 "squashingLayoutPartIsDisallowed",
41 "Squashing a frame, iframe or plugin is not supported." },
42 { SquashingDisallowedReasonSquashingReflectionIsDisallowed,
43 "squashingReflectionDisallowed",
44 "Squashing a element with a reflection is not supported." },
45 { SquashingDisallowedReasonSquashingBlendingIsDisallowed,
46 "squashingBlendingDisallowed",
47 "Squashing a layer with blending is not supported." },
48 { SquashingDisallowedReasonNearestFixedPositionMismatch,
49 "squashingNearestFixedPositionMismatch",
50 "Cannot be squashed because this layer has a different nearest fixed pos ition layer than the squashing layer" },
51 { SquashingDisallowedReasonScrollChildWithCompositedDescendants,
52 "scrollChildWithCompositedDescendants",
53 "Squashing a scroll child with composited descendants is not supported." },
54 { SquashingDisallowedReasonSquashingLayerIsAnimating,
55 "squashingLayerIsAnimating",
56 "Cannot squash into a layer that is animating." },
57 };
58
59 const size_t kNumberOfSquashingDisallowedReasons = WTF_ARRAY_LENGTH(kSquashingDi sallowedReasonStringMap);
60
61 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/SquashingDisallowedReasons.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698