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

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

Issue 2713673005: client-goodbye
Patch Set: Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 RasterInvalidationTracking_h 5 #ifndef RasterInvalidationTracking_h
6 #define RasterInvalidationTracking_h 6 #define RasterInvalidationTracking_h
7 7
8 #include "platform/geometry/IntRect.h" 8 #include "platform/geometry/IntRect.h"
9 #include "platform/geometry/Region.h" 9 #include "platform/geometry/Region.h"
10 #include "platform/graphics/PaintInvalidationReason.h" 10 #include "platform/graphics/PaintInvalidationReason.h"
11 #include "platform/graphics/paint/PaintRecord.h" 11 #include "platform/graphics/paint/PaintRecord.h"
12 #include "platform/json/JSONValues.h" 12 #include "platform/json/JSONValues.h"
13 #include "third_party/skia/include/core/SkColor.h" 13 #include "third_party/skia/include/core/SkColor.h"
14 #include "wtf/Allocator.h" 14 #include "wtf/Allocator.h"
15 #include "wtf/text/WTFString.h" 15 #include "wtf/text/WTFString.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class DisplayItemClient;
20
21 struct RasterInvalidationInfo { 19 struct RasterInvalidationInfo {
22 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 20 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
23 // This is for comparison only. Don't dereference because the client may have 21 // This is for comparison only. Don't dereference, the source may be gone.
24 // died. 22 const void* source;
25 const DisplayItemClient* client;
26 String clientDebugName; 23 String clientDebugName;
27 IntRect rect; 24 IntRect rect;
28 PaintInvalidationReason reason; 25 PaintInvalidationReason reason;
29 RasterInvalidationInfo() : reason(PaintInvalidationFull) {} 26 RasterInvalidationInfo() : reason(PaintInvalidationFull) {}
30 }; 27 };
31 28
32 inline bool operator==(const RasterInvalidationInfo& a, 29 inline bool operator==(const RasterInvalidationInfo& a,
33 const RasterInvalidationInfo& b) { 30 const RasterInvalidationInfo& b) {
34 return a.rect == b.rect; 31 return a.rect == b.rect;
35 } 32 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 79
83 private: 80 private:
84 typedef HashMap<TargetClass*, RasterInvalidationTracking> 81 typedef HashMap<TargetClass*, RasterInvalidationTracking>
85 InvalidationTrackingMap; 82 InvalidationTrackingMap;
86 InvalidationTrackingMap m_invalidationTrackingMap; 83 InvalidationTrackingMap m_invalidationTrackingMap;
87 }; 84 };
88 85
89 } // namespace blink 86 } // namespace blink
90 87
91 #endif // RasterInvalidationTracking_h 88 #endif // RasterInvalidationTracking_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698