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

Side by Side Diff: third_party/WebKit/public/platform/WebDisplayItemList.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 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 WebDisplayItemList_h 5 #ifndef WebDisplayItemList_h
6 #define WebDisplayItemList_h 6 #define WebDisplayItemList_h
7 7
8 #include "WebBlendMode.h" 8 #include "WebBlendMode.h"
9 #include "WebFloatPoint.h" 9 #include "WebFloatPoint.h"
10 #include "WebFloatRect.h" 10 #include "WebFloatRect.h"
11 #include "WebRect.h" 11 #include "WebRect.h"
12 #include "WebSize.h" 12 #include "WebSize.h"
13 #include "WebVector.h" 13 #include "WebVector.h"
14 14
15 #include "cc/paint/paint_record.h"
15 #include "third_party/skia/include/core/SkBlendMode.h" 16 #include "third_party/skia/include/core/SkBlendMode.h"
16 #include "third_party/skia/include/core/SkRefCnt.h" 17 #include "third_party/skia/include/core/SkRefCnt.h"
17 18
18 class SkColorFilter; 19 class SkColorFilter;
19 class SkMatrix44; 20 class SkMatrix44;
20 class SkPath; 21 class SkPath;
21 class SkPicture;
22 struct SkRect; 22 struct SkRect;
23 class SkRRect; 23 class SkRRect;
24 24
25 namespace cc { 25 namespace cc {
26 class FilterOperations; 26 class FilterOperations;
27 } 27 }
28 28
29 namespace gfx { 29 namespace gfx {
30 class ColorSpace; 30 class ColorSpace;
31 } 31 }
32 32
33 namespace blink { 33 namespace blink {
34 34
35 // An ordered list of items representing content to be rendered (stored in 35 // An ordered list of items representing content to be rendered (stored in
36 // 'drawing' items) and operations to be performed when rendering this content 36 // 'drawing' items) and operations to be performed when rendering this content
37 // (stored in 'clip', 'transform', 'filter', etc...). For more details see: 37 // (stored in 'clip', 'transform', 'filter', etc...). For more details see:
38 // http://dev.chromium.org/blink/slimming-paint. 38 // http://dev.chromium.org/blink/slimming-paint.
39 class WebDisplayItemList { 39 class WebDisplayItemList {
40 public: 40 public:
41 virtual ~WebDisplayItemList() {} 41 virtual ~WebDisplayItemList() {}
42 42
43 virtual void appendDrawingItem(const WebRect& visualRect, 43 virtual void appendDrawingItem(const WebRect& visualRect,
44 sk_sp<const SkPicture>) {} 44 sk_sp<const cc::PaintRecord>) {}
45 45
46 virtual void appendClipItem(const WebRect& clipRect, 46 virtual void appendClipItem(const WebRect& clipRect,
47 const WebVector<SkRRect>& roundedClipRects) {} 47 const WebVector<SkRRect>& roundedClipRects) {}
48 virtual void appendEndClipItem() {} 48 virtual void appendEndClipItem() {}
49 virtual void appendClipPathItem(const SkPath&, bool antialias) {} 49 virtual void appendClipPathItem(const SkPath&, bool antialias) {}
50 virtual void appendEndClipPathItem() {} 50 virtual void appendEndClipPathItem() {}
51 virtual void appendFloatClipItem(const WebFloatRect& clipRect) {} 51 virtual void appendFloatClipItem(const WebFloatRect& clipRect) {}
52 virtual void appendEndFloatClipItem() {} 52 virtual void appendEndFloatClipItem() {}
53 virtual void appendTransformItem(const SkMatrix44&) {} 53 virtual void appendTransformItem(const SkMatrix44&) {}
54 virtual void appendEndTransformItem() {} 54 virtual void appendEndTransformItem() {}
(...skipping 20 matching lines...) Expand all
75 // Specifies the color space that the inputs of this display list were 75 // Specifies the color space that the inputs of this display list were
76 // pre-converted into. If this is specified, then rasterization must not 76 // pre-converted into. If this is specified, then rasterization must not
77 // perform any color correction, and the result must be interpreted as being 77 // perform any color correction, and the result must be interpreted as being
78 // in this color space. 78 // in this color space.
79 virtual void setImpliedColorSpace(const gfx::ColorSpace&) {} 79 virtual void setImpliedColorSpace(const gfx::ColorSpace&) {}
80 }; 80 };
81 81
82 } // namespace blink 82 } // namespace blink
83 83
84 #endif // WebDisplayItemList_h 84 #endif // WebDisplayItemList_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebCanvas.h ('k') | third_party/WebKit/public/platform/WebMediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698