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

Side by Side Diff: sky/engine/platform/graphics/CompositingReasons.cpp

Issue 709623002: Remove sparsity tolerance check when considering squashing layers (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 "Might overlap other composited content" }, 51 "Might overlap other composited content" },
52 { CompositingReasonOverlap, 52 { CompositingReasonOverlap,
53 "overlap", 53 "overlap",
54 "Overlaps other composited content" }, 54 "Overlaps other composited content" },
55 { CompositingReasonNegativeZIndexChildren, 55 { CompositingReasonNegativeZIndexChildren,
56 "negativeZIndexChildren", 56 "negativeZIndexChildren",
57 "Parent with composited negative z-index content" }, 57 "Parent with composited negative z-index content" },
58 { CompositingReasonScrollsWithRespectToSquashingLayer, 58 { CompositingReasonScrollsWithRespectToSquashingLayer,
59 "scrollsWithRespectToSquashingLayer", 59 "scrollsWithRespectToSquashingLayer",
60 "Cannot be squashed since this layer scrolls with respect to the squashi ng layer" }, 60 "Cannot be squashed since this layer scrolls with respect to the squashi ng layer" },
61 { CompositingReasonSquashingSparsityExceeded,
62 "squashingSparsityExceeded",
63 "Cannot be squashed as the squashing layer would become too sparse" },
64 { CompositingReasonSquashingClippingContainerMismatch, 61 { CompositingReasonSquashingClippingContainerMismatch,
65 "squashingClippingContainerMismatch", 62 "squashingClippingContainerMismatch",
66 "Cannot be squashed because this layer has a different clipping containe r than the squashing layer" }, 63 "Cannot be squashed because this layer has a different clipping containe r than the squashing layer" },
67 { CompositingReasonSquashingOpacityAncestorMismatch, 64 { CompositingReasonSquashingOpacityAncestorMismatch,
68 "squashingOpacityAncestorMismatch", 65 "squashingOpacityAncestorMismatch",
69 "Cannot be squashed because this layer has a different opacity ancestor than the squashing layer" }, 66 "Cannot be squashed because this layer has a different opacity ancestor than the squashing layer" },
70 { CompositingReasonSquashingTransformAncestorMismatch, 67 { CompositingReasonSquashingTransformAncestorMismatch,
71 "squashingTransformAncestorMismatch", 68 "squashingTransformAncestorMismatch",
72 "Cannot be squashed because this layer has a different transform ancesto r than the squashing layer" }, 69 "Cannot be squashed because this layer has a different transform ancesto r than the squashing layer" },
73 { CompositingReasonSquashingFilterAncestorMismatch, 70 { CompositingReasonSquashingFilterAncestorMismatch,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 "layerForScrollingBlockSelection", 158 "layerForScrollingBlockSelection",
162 "Secondary layer, to house block selection gaps for composited scrolling with no scrolling contents" }, 159 "Secondary layer, to house block selection gaps for composited scrolling with no scrolling contents" },
163 { CompositingReasonInlineTransform, 160 { CompositingReasonInlineTransform,
164 "inlineTransform", 161 "inlineTransform",
165 "Has an inline transform, which causes subsequent layers to assume overl ap" }, 162 "Has an inline transform, which causes subsequent layers to assume overl ap" },
166 }; 163 };
167 164
168 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa p); 165 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa p);
169 166
170 } // namespace blink 167 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/platform/graphics/CompositingReasons.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698