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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/PaintInvalidationReason.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
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGModelObjectPaintInvalidator.cpp ('k') | no next file » | 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 PaintInvalidationReason_h 5 #ifndef PaintInvalidationReason_h
6 #define PaintInvalidationReason_h 6 #define PaintInvalidationReason_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 30 matching lines...) Expand all
41 PaintInvalidationReasonMax = PaintInvalidationDelayedFull 41 PaintInvalidationReasonMax = PaintInvalidationDelayedFull
42 }; 42 };
43 43
44 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea son); 44 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea son);
45 45
46 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) 46 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason)
47 { 47 {
48 return reason >= PaintInvalidationFull; 48 return reason >= PaintInvalidationFull;
49 } 49 }
50 50
51 inline bool isImmediateFullPaintInvalidationReason(PaintInvalidationReason reaso n)
52 {
53 return isFullPaintInvalidationReason(reason) && reason != PaintInvalidationD elayedFull;
54 }
55
51 } // namespace blink 56 } // namespace blink
52 57
53 #endif // PaintInvalidationReason_h 58 #endif // PaintInvalidationReason_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGModelObjectPaintInvalidator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698