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

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

Issue 2095013003: Changes in DisplayItemClient for spv2 paint invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to DisplayItemClient Created 4 years, 6 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 18 matching lines...) Expand all
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 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed i n order to fully paint 36 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed i n order to fully paint
37 // the content, but that painting of the object can be delayed until a futur e frame. 37 // the content, but that painting of the object can be delayed until a futur e frame.
38 // This can be the case for an object whose content is not visible to the us er. 38 // This can be the case for an object whose content is not visible to the us er.
39 PaintInvalidationDelayedFull 39 PaintInvalidationDelayedFull,
40
41 PaintInvalidationReasonMax = PaintInvalidationDelayedFull
40 }; 42 };
41 43
42 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea son); 44 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea son);
43 45
44 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) 46 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason)
45 { 47 {
46 return reason >= PaintInvalidationFull; 48 return reason >= PaintInvalidationFull;
47 } 49 }
48 50
49 } // namespace blink 51 } // namespace blink
50 52
51 #endif // PaintInvalidationReason_h 53 #endif // PaintInvalidationReason_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698