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

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

Issue 2653433002: Share GeometryMapper cache between pre-paint and compositing. (Closed)
Patch Set: none Created 3 years, 11 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/geometry/FloatRect.h" 8 #include "platform/geometry/FloatRect.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // |ancestorState|. See above for the definition of "clip visual rect". 125 // |ancestorState|. See above for the definition of "clip visual rect".
126 FloatRect localToAncestorClipRect( 126 FloatRect localToAncestorClipRect(
127 const PropertyTreeState& localTransformState, 127 const PropertyTreeState& localTransformState,
128 const PropertyTreeState& ancestorState); 128 const PropertyTreeState& ancestorState);
129 129
130 // Returns the lowest common ancestor in the paint property tree. 130 // Returns the lowest common ancestor in the paint property tree.
131 template <typename NodeType> 131 template <typename NodeType>
132 static PLATFORM_EXPORT const NodeType* lowestCommonAncestor(const NodeType*, 132 static PLATFORM_EXPORT const NodeType* lowestCommonAncestor(const NodeType*,
133 const NodeType*); 133 const NodeType*);
134 134
135 void clearCache();
136
135 private: 137 private:
136 // The internal methods do the same things as their public counterparts, but 138 // The internal methods do the same things as their public counterparts, but
137 // take an extra |success| parameter which indicates if the function is 139 // take an extra |success| parameter which indicates if the function is
138 // successful on return. See comments of the public functions for failure 140 // successful on return. See comments of the public functions for failure
139 // conditions. 141 // conditions.
140 142
141 FloatRect sourceToDestinationVisualRectInternal( 143 FloatRect sourceToDestinationVisualRectInternal(
142 const FloatRect&, 144 const FloatRect&,
143 const PropertyTreeState& sourceState, 145 const PropertyTreeState& sourceState,
144 const PropertyTreeState& destinationState, 146 const PropertyTreeState& destinationState,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 m_data; 181 m_data;
180 182
181 const TransformationMatrix m_identity; 183 const TransformationMatrix m_identity;
182 184
183 DISALLOW_COPY_AND_ASSIGN(GeometryMapper); 185 DISALLOW_COPY_AND_ASSIGN(GeometryMapper);
184 }; 186 };
185 187
186 } // namespace blink 188 } // namespace blink
187 189
188 #endif // GeometryMapper_h 190 #endif // GeometryMapper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698