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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerClipper.h

Issue 2822653003: [SPInvalidation] Micro-optimize PaintLayerClipper::calculateRects (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerClipper.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.h b/third_party/WebKit/Source/core/paint/PaintLayerClipper.h
index 4f0addbb770ce5c24d7d403edd9a219debb260da..f37081d76ac03dffe458cc49048c418d1f16e7c1 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.h
@@ -191,8 +191,11 @@ class CORE_EXPORT PaintLayerClipper {
ClipRect& output) const;
// This method figures out our layerBounds in coordinates relative to
- // |rootLayer|. It also computes our background and foreground clip rects
+ // |root_layer|. It also computes our background and foreground clip rects
// for painting/event handling. Pass offsetFromRoot if known.
+ // If provided, |offset_from_root| is not changed and assumed to already
+ // include subpixel accumualation. Otherwise it is set to the offset from
+ // |layer_| to |root_layer|, plus |context.sub_pixel_accumuation|.
void CalculateRects(const ClipRectsContext&,
const LayoutRect& paint_dirty_rect,
LayoutRect& layer_bounds,
@@ -223,9 +226,6 @@ class CORE_EXPORT PaintLayerClipper {
ALWAYS_INLINE void CalculateBackgroundClipRectWithGeometryMapper(
const ClipRectsContext&,
ClipRect& output) const;
- ALWAYS_INLINE void CalculateForegroundClipRectWithGeometryMapper(
- const ClipRectsContext&,
- ClipRect& output) const;
ALWAYS_INLINE void InitializeCommonClipRectState(
const ClipRectsContext&,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698