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

Side by Side Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.h

Issue 2863483002: Remove CHECK_FAST_PATH_SLOW_PATH_EQUALITY (Closed)
Patch Set: Created 3 years, 7 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/layout/PaintInvalidationState.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 PaintInvalidationState_h 5 #ifndef PaintInvalidationState_h
6 #define PaintInvalidationState_h 6 #define PaintInvalidationState_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/paint/PaintInvalidator.h" 9 #include "core/paint/PaintInvalidator.h"
10 #include "platform/geometry/LayoutRect.h" 10 #include "platform/geometry/LayoutRect.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Records objects needing paint invalidation on the next frame. See the 166 // Records objects needing paint invalidation on the next frame. See the
167 // definition of PaintInvalidationDelayedFull for more details. 167 // definition of PaintInvalidationDelayedFull for more details.
168 Vector<const LayoutObject*>& pending_delayed_paint_invalidations_; 168 Vector<const LayoutObject*>& pending_delayed_paint_invalidations_;
169 169
170 PaintLayer& painting_layer_; 170 PaintLayer& painting_layer_;
171 171
172 #if DCHECK_IS_ON() 172 #if DCHECK_IS_ON()
173 bool did_update_for_children_ = false; 173 bool did_update_for_children_ = false;
174 #endif 174 #endif
175
176 #if DCHECK_IS_ON() && !defined(NDEBUG)
177 // #define CHECK_FAST_PATH_SLOW_PATH_EQUALITY
178 #endif
179
180 #ifdef CHECK_FAST_PATH_SLOW_PATH_EQUALITY
181 void assertFastPathAndSlowPathRectsEqual(
182 const LayoutRect& fastPathRect,
183 const LayoutRect& slowPathRect) const;
184 bool m_canCheckFastPathSlowPathEquality;
185 #endif
186 }; 175 };
187 176
188 // This is temporary to adapt legacy PaintInvalidationState to 177 // This is temporary to adapt legacy PaintInvalidationState to
189 // PaintInvalidatorContext 178 // PaintInvalidatorContext
190 class PaintInvalidatorContextAdapter : public PaintInvalidatorContext { 179 class PaintInvalidatorContextAdapter : public PaintInvalidatorContext {
191 public: 180 public:
192 PaintInvalidatorContextAdapter(const PaintInvalidationState&); 181 PaintInvalidatorContextAdapter(const PaintInvalidationState&);
193 void MapLocalRectToVisualRectInBacking(const LayoutObject&, 182 void MapLocalRectToVisualRectInBacking(const LayoutObject&,
194 LayoutRect&) const override; 183 LayoutRect&) const override;
195 184
196 private: 185 private:
197 const PaintInvalidationState& paint_invalidation_state_; 186 const PaintInvalidationState& paint_invalidation_state_;
198 }; 187 };
199 188
200 } // namespace blink 189 } // namespace blink
201 190
202 #endif // PaintInvalidationState_h 191 #endif // PaintInvalidationState_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698