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

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

Issue 2277443003: [SPv2] Rasterization invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix break of debug build with dcheck off Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 DisplayItemClient_h 5 #ifndef DisplayItemClient_h
6 #define DisplayItemClient_h 6 #define DisplayItemClient_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/geometry/LayoutRect.h" 9 #include "platform/geometry/LayoutRect.h"
10 #include "platform/graphics/PaintInvalidationReason.h" 10 #include "platform/graphics/PaintInvalidationReason.h"
11 #include "wtf/Assertions.h" 11 #include "wtf/Assertions.h"
12 #include "wtf/text/WTFString.h" 12 #include "wtf/text/WTFString.h"
13 13
14 #define CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS DCHECK_IS_ON() 14 #if !defined(NDEBUG) || DCHECK_IS_ON()
15 #define CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS 1
16 #endif
15 17
16 namespace blink { 18 namespace blink {
17 19
18 // The class for objects that can be associated with display items. 20 // The class for objects that can be associated with display items.
19 // A DisplayItemClient object should live at least longer than the document cycl e 21 // A DisplayItemClient object should live at least longer than the document cycl e
20 // in which its display items are created during painting. 22 // in which its display items are created during painting.
21 // After the document cycle, a pointer/reference to DisplayItemClient should be 23 // After the document cycle, a pointer/reference to DisplayItemClient should be
22 // no longer dereferenced unless we can make sure the client is still valid. 24 // no longer dereferenced unless we can make sure the client is still valid.
23 class PLATFORM_EXPORT DisplayItemClient { 25 class PLATFORM_EXPORT DisplayItemClient {
24 public: 26 public:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 135
134 mutable CacheGenerationOrInvalidationReason m_cacheGenerationOrInvalidationR eason; 136 mutable CacheGenerationOrInvalidationReason m_cacheGenerationOrInvalidationR eason;
135 }; 137 };
136 138
137 inline bool operator==(const DisplayItemClient& client1, const DisplayItemClient & client2) { return &client1 == &client2; } 139 inline bool operator==(const DisplayItemClient& client1, const DisplayItemClient & client2) { return &client1 == &client2; }
138 inline bool operator!=(const DisplayItemClient& client1, const DisplayItemClient & client2) { return &client1 != &client2; } 140 inline bool operator!=(const DisplayItemClient& client1, const DisplayItemClient & client2) { return &client1 != &client2; }
139 141
140 } // namespace blink 142 } // namespace blink
141 143
142 #endif // DisplayItemClient_h 144 #endif // DisplayItemClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698