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

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

Issue 2633383004: Avoid unnecessary FloatRect<->LayoutRect conversions in PaintInvalidator (Closed)
Patch Set: Seperate inline change 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PaintInvalidator_h 5 #ifndef PaintInvalidator_h
6 #define PaintInvalidator_h 6 #define PaintInvalidator_h
7 7
8 #include "platform/geometry/LayoutRect.h" 8 #include "platform/geometry/LayoutRect.h"
9 #include "platform/graphics/paint/GeometryMapper.h" 9 #include "platform/graphics/paint/GeometryMapper.h"
10 #include "wtf/Vector.h" 10 #include "wtf/Vector.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void invalidatePaintIfNeeded(FrameView&, PaintInvalidatorContext&); 89 void invalidatePaintIfNeeded(FrameView&, PaintInvalidatorContext&);
90 void invalidatePaintIfNeeded(const LayoutObject&, 90 void invalidatePaintIfNeeded(const LayoutObject&,
91 const LayoutPoint& oldPaintOffset, 91 const LayoutPoint& oldPaintOffset,
92 PaintInvalidatorContext&); 92 PaintInvalidatorContext&);
93 93
94 // Process objects needing paint invalidation on the next frame. 94 // Process objects needing paint invalidation on the next frame.
95 // See the definition of PaintInvalidationDelayedFull for more details. 95 // See the definition of PaintInvalidationDelayedFull for more details.
96 void processPendingDelayedPaintInvalidations(); 96 void processPendingDelayedPaintInvalidations();
97 97
98 private: 98 private:
99 LayoutRect mapLocalRectToPaintInvalidationBacking(
100 const LayoutObject&,
101 const FloatRect&,
102 const PaintInvalidatorContext&);
103 LayoutRect computeVisualRectInBacking(const LayoutObject&, 99 LayoutRect computeVisualRectInBacking(const LayoutObject&,
104 const PaintInvalidatorContext&); 100 const PaintInvalidatorContext&);
105 LayoutPoint computeLocationInBacking(const LayoutObject&, 101 LayoutPoint computeLocationInBacking(const LayoutObject&,
106 const PaintInvalidatorContext&); 102 const PaintInvalidatorContext&);
107 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); 103 void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&);
108 void updateContext(const LayoutObject&, PaintInvalidatorContext&); 104 void updateContext(const LayoutObject&, PaintInvalidatorContext&);
109 105
110 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations; 106 Vector<const LayoutObject*> m_pendingDelayedPaintInvalidations;
111 GeometryMapper m_geometryMapper; 107 GeometryMapper m_geometryMapper;
112 }; 108 };
113 109
114 } // namespace blink 110 } // namespace blink
115 111
116 #endif // PaintInvalidator_h 112 #endif // PaintInvalidator_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698