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

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

Issue 1025603002: Revert of [S.P.] Don't draw frames of animated images that are offscreen. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
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 {
11 11
12 enum PaintInvalidationReason { 12 enum PaintInvalidationReason {
13 PaintInvalidationNone, 13 PaintInvalidationNone,
14 PaintInvalidationIncremental, 14 PaintInvalidationIncremental,
15 PaintInvalidationRectangle, 15 PaintInvalidationRectangle,
16 // The following reasons will all cause full invalidation of the LayoutObjec t. 16 // The following reasons will all cause full invalidation of the LayoutObjec t.
17 PaintInvalidationFull, // Any unspecified reason of full invalidation. 17 PaintInvalidationFull, // Any unspecified reason of full invalidation.
18 PaintInvalidationStyleChange, 18 PaintInvalidationStyleChange,
19 PaintInvalidationForcedByLayout, 19 PaintInvalidationForcedByLayout,
20 PaintInvalidationCompositingUpdate, 20 PaintInvalidationCompositingUpdate,
21 PaintInvalidationBorderBoxChange, 21 PaintInvalidationBorderBoxChange,
22 PaintInvalidationBoundsChange, 22 PaintInvalidationBoundsChange,
23 PaintInvalidationLocationChange, 23 PaintInvalidationLocationChange,
24 PaintInvalidationBecameVisible, 24 PaintInvalidationBecameVisible,
25 PaintInvalidationBecameInvisible, 25 PaintInvalidationBecameInvisible,
26 PaintInvalidationScroll, 26 PaintInvalidationScroll,
27 PaintInvalidationSelection, 27 PaintInvalidationSelection,
28 PaintInvalidationLayer, 28 PaintInvalidationLayer,
29 PaintInvalidationRendererInsertion, 29 PaintInvalidationRendererInsertion,
30 PaintInvalidationRendererRemoval, 30 PaintInvalidationRendererRemoval
31 // PaintInvalidationDelayedFull means that PaintInvalidationFull is needed i n order to fully paint
32 // the content, but that painting of the object can be delayed until a futur e frame.
33 // This can be the case for an object whose content is not visible to the us er.
34 PaintInvalidationDelayedFull
35 }; 31 };
36 32
37 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea son); 33 PLATFORM_EXPORT const char* paintInvalidationReasonToString(PaintInvalidationRea son);
38 34
39 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) 35 inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason)
40 { 36 {
41 return reason >= PaintInvalidationFull; 37 return reason >= PaintInvalidationFull;
42 } 38 }
43 39
44 } // namespace blink 40 } // namespace blink
45 41
46 #endif // PaintInvalidationReason_h 42 #endif // PaintInvalidationReason_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/platform/graphics/PaintInvalidationReason.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698