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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.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 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 0c9ee0cf611c6474c4d71c57f500440f0de4ffd9..d97b3ff445f2b6a61b5cc96479354e6c03b683d5 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.h
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
@@ -86,6 +86,9 @@ struct PaintInvalidatorContext {
class PaintInvalidator {
public:
+ PaintInvalidator(GeometryMapper& geometryMapper)
+ : m_geometryMapper(geometryMapper) {}
+
void invalidatePaintIfNeeded(FrameView&, PaintInvalidatorContext&);
void invalidatePaintIfNeeded(const LayoutObject&, PaintInvalidatorContext&);
@@ -105,7 +108,7 @@ class PaintInvalidator {
PaintInvalidatorContext&);
Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations;
- GeometryMapper m_geometryMapper;
+ GeometryMapper& m_geometryMapper;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698