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

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

Issue 2247543003: Tweak priorities of paint invalidation reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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
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 BoxPaintInvalidator_h 5 #ifndef BoxPaintInvalidator_h
6 #define BoxPaintInvalidator_h 6 #define BoxPaintInvalidator_h
7 7
8 #include "platform/graphics/PaintInvalidationReason.h" 8 #include "platform/graphics/PaintInvalidationReason.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 10
(...skipping 10 matching lines...) Expand all
21 BoxPaintInvalidator(const LayoutBox& box, const PaintInvalidatorContext& con text) 21 BoxPaintInvalidator(const LayoutBox& box, const PaintInvalidatorContext& con text)
22 : m_box(box), m_context(context) { } 22 : m_box(box), m_context(context) { }
23 23
24 static void boxWillBeDestroyed(const LayoutBox&); 24 static void boxWillBeDestroyed(const LayoutBox&);
25 25
26 PaintInvalidationReason invalidatePaintIfNeeded(); 26 PaintInvalidationReason invalidatePaintIfNeeded();
27 27
28 private: 28 private:
29 PaintInvalidationReason computePaintInvalidationReason(); 29 PaintInvalidationReason computePaintInvalidationReason();
30 30
31 void incrementallyInvalidatePaint(); 31 bool incrementallyInvalidatePaint();
32 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutRect&); 32 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutRect&);
33 33
34 bool needsToSavePreviousBoxSizes(); 34 bool needsToSavePreviousBoxSizes();
35 void savePreviousBoxSizesIfNeeded(); 35 void savePreviousBoxSizesIfNeeded();
36 LayoutSize computePreviousBorderBoxSize(const LayoutSize& previousBoundsSize ); 36 LayoutSize computePreviousBorderBoxSize(const LayoutSize& previousBoundsSize );
37 37
38 const LayoutBox& m_box; 38 const LayoutBox& m_box;
39 const PaintInvalidatorContext& m_context; 39 const PaintInvalidatorContext& m_context;
40 }; 40 };
41 41
42 } // namespace blink 42 } // namespace blink
43 43
44 #endif 44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698