OLD | NEW |
---|---|
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 CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ | 5 #ifndef CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ |
6 #define CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ | 6 #define CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "cc/blink/cc_blink_export.h" | 9 #include "cc/blink/cc_blink_export.h" |
10 #include "cc/resources/display_item_list.h" | 10 #include "cc/resources/display_item_list.h" |
11 #include "third_party/WebKit/public/platform/WebBlendMode.h" | 11 #include "third_party/WebKit/public/platform/WebBlendMode.h" |
12 #include "third_party/WebKit/public/platform/WebContentLayerClient.h" | 12 #include "third_party/WebKit/public/platform/WebContentLayerClient.h" |
13 #include "third_party/WebKit/public/platform/WebDisplayItemList.h" | 13 #include "third_party/WebKit/public/platform/WebDisplayItemList.h" |
14 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 14 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
15 #include "third_party/WebKit/public/platform/WebVector.h" | 15 #include "third_party/WebKit/public/platform/WebVector.h" |
16 #include "third_party/skia/include/core/SkRegion.h" | 16 #include "third_party/skia/include/core/SkRegion.h" |
17 #include "ui/gfx/geometry/point_f.h" | |
17 | 18 |
18 class SkImageFilter; | 19 class SkImageFilter; |
19 class SkMatrix44; | 20 class SkMatrix44; |
20 class SkPath; | 21 class SkPath; |
21 class SkPicture; | 22 class SkPicture; |
22 class SkRRect; | 23 class SkRRect; |
23 | 24 |
24 namespace cc_blink { | 25 namespace cc_blink { |
25 | 26 |
26 class WebDisplayItemListImpl : public blink::WebDisplayItemList { | 27 class WebDisplayItemListImpl : public blink::WebDisplayItemList { |
27 public: | 28 public: |
28 CC_BLINK_EXPORT WebDisplayItemListImpl(); | 29 CC_BLINK_EXPORT WebDisplayItemListImpl(); |
29 virtual ~WebDisplayItemListImpl(); | 30 virtual ~WebDisplayItemListImpl(); |
30 | 31 |
31 scoped_refptr<cc::DisplayItemList> ToDisplayItemList(); | 32 scoped_refptr<cc::DisplayItemList> ToDisplayItemList(); |
32 | 33 |
33 // blink::WebDisplayItemList implementation. | 34 // blink::WebDisplayItemList implementation. |
34 virtual void appendDrawingItem(SkPicture* picture, | 35 virtual void appendDrawingItem( |
35 const blink::WebFloatPoint& location); | 36 const SkPicture*, |
37 const blink::WebFloatPoint& location = gfx::PointF()); | |
38 virtual void appendDrawingItem( | |
39 SkPicture*, | |
40 const blink::WebFloatPoint& location = gfx::PointF()); | |
ajuma
2015/02/12 19:42:59
I think we can do without the default arguments he
Stephen Chennney
2015/02/12 19:47:59
Yes, I'll verify.
| |
36 virtual void appendClipItem( | 41 virtual void appendClipItem( |
37 const blink::WebRect& clip_rect, | 42 const blink::WebRect& clip_rect, |
38 const blink::WebVector<SkRRect>& rounded_clip_rects); | 43 const blink::WebVector<SkRRect>& rounded_clip_rects); |
39 virtual void appendEndClipItem(); | 44 virtual void appendEndClipItem(); |
40 virtual void appendClipPathItem(const SkPath& clip_path, | 45 virtual void appendClipPathItem(const SkPath& clip_path, |
41 SkRegion::Op clip_op, | 46 SkRegion::Op clip_op, |
42 bool antialias); | 47 bool antialias); |
43 virtual void appendEndClipPathItem(); | 48 virtual void appendEndClipPathItem(); |
44 virtual void appendFloatClipItem(const blink::WebFloatRect& clip_rect); | 49 virtual void appendFloatClipItem(const blink::WebFloatRect& clip_rect); |
45 virtual void appendEndFloatClipItem(); | 50 virtual void appendEndFloatClipItem(); |
46 virtual void appendTransformItem(const SkMatrix44& matrix); | 51 virtual void appendTransformItem(const SkMatrix44& matrix); |
47 virtual void appendEndTransformItem(); | 52 virtual void appendEndTransformItem(); |
48 virtual void appendTransparencyItem(float opacity, | 53 virtual void appendTransparencyItem(float opacity, |
49 blink::WebBlendMode blend_mode); | 54 blink::WebBlendMode blend_mode); |
50 virtual void appendEndTransparencyItem(); | 55 virtual void appendEndTransparencyItem(); |
51 virtual void appendFilterItem(SkImageFilter* filter, | 56 virtual void appendFilterItem(SkImageFilter* filter, |
52 const blink::WebFloatRect& bounds); | 57 const blink::WebFloatRect& bounds); |
53 virtual void appendEndFilterItem(); | 58 virtual void appendEndFilterItem(); |
54 | 59 |
55 private: | 60 private: |
56 scoped_refptr<cc::DisplayItemList> display_item_list_; | 61 scoped_refptr<cc::DisplayItemList> display_item_list_; |
57 | 62 |
58 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); | 63 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); |
59 }; | 64 }; |
60 | 65 |
61 } // namespace cc_blink | 66 } // namespace cc_blink |
62 | 67 |
63 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ | 68 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ |
OLD | NEW |