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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h

Issue 2816533002: [SPv1] Fix return value for "fallback" case of inverted clips. (Closed)
Patch Set: none Created 3 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef GeometryMapper_h 5 #ifndef GeometryMapper_h
6 #define GeometryMapper_h 6 #define GeometryMapper_h
7 7
8 #include "platform/graphics/paint/FloatClipRect.h" 8 #include "platform/graphics/paint/FloatClipRect.h"
9 #include "platform/graphics/paint/PropertyTreeState.h" 9 #include "platform/graphics/paint/PropertyTreeState.h"
10 #include "platform/transforms/TransformationMatrix.h" 10 #include "platform/transforms/TransformationMatrix.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 static const TransformationMatrix& LocalToAncestorMatrix( 131 static const TransformationMatrix& LocalToAncestorMatrix(
132 const TransformPaintPropertyNode* local_transform_node, 132 const TransformPaintPropertyNode* local_transform_node,
133 const TransformPaintPropertyNode* ancestor_transform_node); 133 const TransformPaintPropertyNode* ancestor_transform_node);
134 134
135 // Returns the "clip visual rect" between |localTransformState| and 135 // Returns the "clip visual rect" between |localTransformState| and
136 // |ancestorState|. See above for the definition of "clip visual rect". 136 // |ancestorState|. See above for the definition of "clip visual rect".
137 // 137 //
138 // The output FloatClipRect may contain false positives for rounded-ness 138 // The output FloatClipRect may contain false positives for rounded-ness
139 // if a rounded clip is clipped out, and overly conservative results 139 // if a rounded clip is clipped out, and overly conservative results
140 // in the presences of transforms. 140 // in the presences of transforms.
141 static FloatClipRect LocalToAncestorClipRect( 141 static const FloatClipRect& LocalToAncestorClipRect(
142 const PropertyTreeState& local_transform_state, 142 const PropertyTreeState& local_transform_state,
143 const PropertyTreeState& ancestor_state); 143 const PropertyTreeState& ancestor_state);
144 144
145 // Like localToAncestorClipRect, except it can handle destination transform 145 // Like localToAncestorClipRect, except it can handle destination transform
146 // spaces which are not direct ancestors of the source transform space. 146 // spaces which are not direct ancestors of the source transform space.
147 // 147 //
148 // The output FloatClipRect may contain false positives for rounded-ness 148 // The output FloatClipRect may contain false positives for rounded-ness
149 // if a rounded clip is clipped out, and overly conservative results 149 // if a rounded clip is clipped out, and overly conservative results
150 // in the presences of transforms. 150 // in the presences of transforms.
151 static const FloatClipRect& SourceToDestinationClipRect( 151 static const FloatClipRect& SourceToDestinationClipRect(
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 static const FloatClipRect& InfiniteClip(); 209 static const FloatClipRect& InfiniteClip();
210 static FloatClipRect& TempRect(); 210 static FloatClipRect& TempRect();
211 211
212 friend class GeometryMapperTest; 212 friend class GeometryMapperTest;
213 friend class PaintLayerClipperTest; 213 friend class PaintLayerClipperTest;
214 }; 214 };
215 215
216 } // namespace blink 216 } // namespace blink
217 217
218 #endif // GeometryMapper_h 218 #endif // GeometryMapper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698