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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/PaintInvalidationReason.h

Issue 2398453002: Rewrap comments to 80 columns in Source/platform/graphics/. (Closed)
Patch Set: Review feedback Created 4 years, 2 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 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 16 matching lines...) Expand all
27 PaintInvalidationBecameVisible, 27 PaintInvalidationBecameVisible,
28 PaintInvalidationBecameInvisible, 28 PaintInvalidationBecameInvisible,
29 PaintInvalidationScroll, 29 PaintInvalidationScroll,
30 PaintInvalidationSelection, 30 PaintInvalidationSelection,
31 PaintInvalidationOutline, 31 PaintInvalidationOutline,
32 PaintInvalidationSubtree, 32 PaintInvalidationSubtree,
33 PaintInvalidationLayoutObjectInsertion, 33 PaintInvalidationLayoutObjectInsertion,
34 PaintInvalidationLayoutObjectRemoval, 34 PaintInvalidationLayoutObjectRemoval,
35 PaintInvalidationSVGResourceChange, 35 PaintInvalidationSVGResourceChange,
36 PaintInvalidationForTesting, 36 PaintInvalidationForTesting,
37 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed in order to fully paint 37 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed in
38 // the content, but that painting of the object can be delayed until a future frame. 38 // order to fully paint the content, but that painting of the object can be
39 // This can be the case for an object whose content is not visible to the user . 39 // delayed until a future frame. This can be the case for an object whose
40 // content is not visible to the user.
40 PaintInvalidationDelayedFull, 41 PaintInvalidationDelayedFull,
41 42
42 PaintInvalidationReasonMax = PaintInvalidationDelayedFull 43 PaintInvalidationReasonMax = PaintInvalidationDelayedFull
43 }; 44 };
44 45
45 PLATFORM_EXPORT const char* paintInvalidationReasonToString( 46 PLATFORM_EXPORT const char* paintInvalidationReasonToString(
46 PaintInvalidationReason); 47 PaintInvalidationReason);
47 48
48 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) { 49 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) {
49 return reason >= PaintInvalidationFull; 50 return reason >= PaintInvalidationFull;
50 } 51 }
51 52
52 inline bool isImmediateFullPaintInvalidationReason( 53 inline bool isImmediateFullPaintInvalidationReason(
53 PaintInvalidationReason reason) { 54 PaintInvalidationReason reason) {
54 return isFullPaintInvalidationReason(reason) && 55 return isFullPaintInvalidationReason(reason) &&
55 reason != PaintInvalidationDelayedFull; 56 reason != PaintInvalidationDelayedFull;
56 } 57 }
57 58
58 } // namespace blink 59 } // namespace blink
59 60
60 #endif // PaintInvalidationReason_h 61 #endif // PaintInvalidationReason_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageSource.cpp ('k') | third_party/WebKit/Source/platform/graphics/Path.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698