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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem 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/json/JSONValues.h" 12 #include "platform/json/JSONValues.h"
12 #include "third_party/skia/include/core/SkColor.h" 13 #include "third_party/skia/include/core/SkColor.h"
13 #include "third_party/skia/include/core/SkPicture.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; 19 class DisplayItemClient;
20 20
21 struct RasterInvalidationInfo { 21 struct RasterInvalidationInfo {
22 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 22 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
23 // This is for comparison only. Don't dereference because the client may have 23 // This is for comparison only. Don't dereference because the client may have
(...skipping 14 matching lines...) Expand all
38 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 38 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
39 int x; 39 int x;
40 int y; 40 int y;
41 SkColor oldPixel; 41 SkColor oldPixel;
42 SkColor newPixel; 42 SkColor newPixel;
43 }; 43 };
44 44
45 struct PLATFORM_EXPORT RasterInvalidationTracking { 45 struct PLATFORM_EXPORT RasterInvalidationTracking {
46 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 46 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
47 Vector<RasterInvalidationInfo> trackedRasterInvalidations; 47 Vector<RasterInvalidationInfo> trackedRasterInvalidations;
48 sk_sp<SkPicture> lastPaintedPicture; 48 sk_sp<PaintRecord> lastPaintedPicture;
49 IntRect lastInterestRect; 49 IntRect lastInterestRect;
50 Region rasterInvalidationRegionSinceLastPaint; 50 Region rasterInvalidationRegionSinceLastPaint;
51 Vector<UnderPaintInvalidation> underPaintInvalidations; 51 Vector<UnderPaintInvalidation> underPaintInvalidations;
52 52
53 void asJSON(JSONObject*); 53 void asJSON(JSONObject*);
54 }; 54 };
55 55
56 template <class TargetClass> 56 template <class TargetClass>
57 class PLATFORM_EXPORT RasterInvalidationTrackingMap { 57 class PLATFORM_EXPORT RasterInvalidationTrackingMap {
58 public: 58 public:
(...skipping 23 matching lines...) Expand all
82 82
83 private: 83 private:
84 typedef HashMap<TargetClass*, RasterInvalidationTracking> 84 typedef HashMap<TargetClass*, RasterInvalidationTracking>
85 InvalidationTrackingMap; 85 InvalidationTrackingMap;
86 InvalidationTrackingMap m_invalidationTrackingMap; 86 InvalidationTrackingMap m_invalidationTrackingMap;
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif // RasterInvalidationTracking_h 91 #endif // RasterInvalidationTracking_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698