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

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

Issue 2633383004: Avoid unnecessary FloatRect<->LayoutRect conversions in PaintInvalidator (Closed)
Patch Set: Inline PaintInvalidation functions and avoid unnecessary conversions 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/PaintInvalidator.h
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.h b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
index eb733986a3a9225b8242c525e0bd1341639ee439..3d37ff2dbf7298b8c87d06f0f74e99e203cd5f43 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.h
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
@@ -96,16 +96,13 @@ class PaintInvalidator {
void processPendingDelayedPaintInvalidations();
private:
- LayoutRect mapLocalRectToPaintInvalidationBacking(
- const LayoutObject&,
- const FloatRect&,
- const PaintInvalidatorContext&);
- LayoutRect computeVisualRectInBacking(const LayoutObject&,
- const PaintInvalidatorContext&);
- LayoutPoint computeLocationInBacking(const LayoutObject&,
- const PaintInvalidatorContext&);
- void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&);
- void updateContext(const LayoutObject&, PaintInvalidatorContext&);
+ inline LayoutRect computeVisualRectInBacking(const LayoutObject&,
+ const PaintInvalidatorContext&);
+ inline LayoutPoint computeLocationInBacking(const LayoutObject&,
+ const PaintInvalidatorContext&);
+ inline void updatePaintingLayer(const LayoutObject&,
+ PaintInvalidatorContext&);
+ inline void updateContext(const LayoutObject&, PaintInvalidatorContext&);
Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations;
GeometryMapper m_geometryMapper;

Powered by Google App Engine
This is Rietveld 408576698