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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerClipper.h

Issue 2785583002: [SPInvalidation] Always inline the internal methods of PaintLayerClipper (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | 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 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 ClipRects& getClipRects(const ClipRectsContext&) const; 205 ClipRects& getClipRects(const ClipRectsContext&) const;
206 206
207 void calculateClipRects(const ClipRectsContext&, ClipRects&) const; 207 void calculateClipRects(const ClipRectsContext&, ClipRects&) const;
208 ClipRects* clipRectsIfCached(const ClipRectsContext&) const; 208 ClipRects* clipRectsIfCached(const ClipRectsContext&) const;
209 ClipRects& storeClipRectsInCache(const ClipRectsContext&, 209 ClipRects& storeClipRectsInCache(const ClipRectsContext&,
210 ClipRects* parentClipRects, 210 ClipRects* parentClipRects,
211 const ClipRects&) const; 211 const ClipRects&) const;
212 212
213 void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const; 213 void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const;
214 214
215 bool shouldClipOverflow(const ClipRectsContext&) const; 215 ALWAYS_INLINE bool shouldClipOverflow(const ClipRectsContext&) const;
216 bool shouldRespectOverflowClip(const ClipRectsContext&) const; 216 ALWAYS_INLINE bool shouldRespectOverflowClip(const ClipRectsContext&) const;
217 217
218 // Returned clip rect in |output| is in the space of the context's rootLayer. 218 // Returned clip rect in |output| is in the space of the context's rootLayer.
219 void calculateClipRectWithGeometryMapper(const ClipRectsContext&, 219 ALWAYS_INLINE void calculateClipRectWithGeometryMapper(
220 bool isForeground, 220 const ClipRectsContext&,
221 ClipRect& output) const; 221 bool isForeground,
222 ClipRect& output) const;
222 // Mutates the given rect into a rect in the space of the context's 223 // Mutates the given rect into a rect in the space of the context's
223 // rootLayer. 224 // rootLayer.
224 void mapLocalToRootWithGeometryMapper(const ClipRectsContext&, 225 ALWAYS_INLINE void mapLocalToRootWithGeometryMapper(const ClipRectsContext&,
225 LayoutRect&) const; 226 LayoutRect&) const;
226 // Same as calculateRects, but using GeometryMapper. 227 // Same as calculateRects, but using GeometryMapper.
227 void calculateRectsWithGeometryMapper( 228 ALWAYS_INLINE void calculateRectsWithGeometryMapper(
228 const ClipRectsContext&, 229 const ClipRectsContext&,
229 const LayoutRect& paintDirtyRect, 230 const LayoutRect& paintDirtyRect,
230 LayoutRect& layerBounds, 231 LayoutRect& layerBounds,
231 ClipRect& backgroundRect, 232 ClipRect& backgroundRect,
232 ClipRect& foregroundRect, 233 ClipRect& foregroundRect,
233 const LayoutPoint* offsetFromRoot = 0) const; 234 const LayoutPoint* offsetFromRoot = 0) const;
234 235
235 void applyOverflowClipToBackgroundRectWithGeometryMapper( 236 void ALWAYS_INLINE
236 const ClipRectsContext&, 237 applyOverflowClipToBackgroundRectWithGeometryMapper(const ClipRectsContext&,
237 ClipRect&) const; 238 ClipRect&) const;
238 239
239 const PaintLayer& m_layer; 240 const PaintLayer& m_layer;
240 GeometryMapper* m_geometryMapper; 241 GeometryMapper* m_geometryMapper;
241 242
242 friend class PaintLayerClipperTest; 243 friend class PaintLayerClipperTest;
243 }; 244 };
244 245
245 } // namespace blink 246 } // namespace blink
246 247
247 #endif // LayerClipper_h 248 #endif // LayerClipper_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698