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/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "cc/blink/cc_blink_export.h" | 10 #include "cc/blink/cc_blink_export.h" |
11 #include "cc/playback/display_item_list.h" | 11 #include "cc/playback/display_item_list.h" |
12 #include "third_party/WebKit/public/platform/WebDisplayItemList.h" | 12 #include "third_party/WebKit/public/platform/WebDisplayItemList.h" |
13 #include "third_party/WebKit/public/platform/WebVector.h" | 13 #include "third_party/WebKit/public/platform/WebVector.h" |
| 14 #include "third_party/skia/include/core/SkBlendMode.h" |
14 #include "third_party/skia/include/core/SkRegion.h" | 15 #include "third_party/skia/include/core/SkRegion.h" |
15 #include "third_party/skia/include/core/SkXfermode.h" | |
16 #include "ui/gfx/geometry/point_f.h" | 16 #include "ui/gfx/geometry/point_f.h" |
17 | 17 |
18 class SkColorFilter; | 18 class SkColorFilter; |
19 class SkImageFilter; | 19 class SkImageFilter; |
20 class SkMatrix44; | 20 class SkMatrix44; |
21 class SkPath; | 21 class SkPath; |
22 class SkPicture; | 22 class SkPicture; |
23 class SkRRect; | 23 class SkRRect; |
24 | 24 |
25 namespace blink { | 25 namespace blink { |
(...skipping 25 matching lines...) Expand all Loading... |
51 void appendEndClipItem() override; | 51 void appendEndClipItem() override; |
52 void appendClipPathItem(const SkPath& clip_path, | 52 void appendClipPathItem(const SkPath& clip_path, |
53 SkRegion::Op clip_op, | 53 SkRegion::Op clip_op, |
54 bool antialias) override; | 54 bool antialias) override; |
55 void appendEndClipPathItem() override; | 55 void appendEndClipPathItem() override; |
56 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override; | 56 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override; |
57 void appendEndFloatClipItem() override; | 57 void appendEndFloatClipItem() override; |
58 void appendTransformItem(const SkMatrix44& matrix) override; | 58 void appendTransformItem(const SkMatrix44& matrix) override; |
59 void appendEndTransformItem() override; | 59 void appendEndTransformItem() override; |
60 void appendCompositingItem(float opacity, | 60 void appendCompositingItem(float opacity, |
61 SkXfermode::Mode, | 61 SkBlendMode, |
62 SkRect* bounds, | 62 SkRect* bounds, |
63 SkColorFilter*) override; | 63 SkColorFilter*) override; |
64 void appendEndCompositingItem() override; | 64 void appendEndCompositingItem() override; |
65 void appendFilterItem(const cc::FilterOperations& filters, | 65 void appendFilterItem(const cc::FilterOperations& filters, |
66 const blink::WebFloatRect& filter_bounds, | 66 const blink::WebFloatRect& filter_bounds, |
67 const blink::WebFloatPoint& origin) override; | 67 const blink::WebFloatPoint& origin) override; |
68 void appendEndFilterItem() override; | 68 void appendEndFilterItem() override; |
69 void appendScrollItem(const blink::WebSize& scrollOffset, | 69 void appendScrollItem(const blink::WebSize& scrollOffset, |
70 ScrollContainerId) override; | 70 ScrollContainerId) override; |
71 void appendEndScrollItem() override; | 71 void appendEndScrollItem() override; |
72 | 72 |
73 void setIsSuitableForGpuRasterization(bool isSuitable) override; | 73 void setIsSuitableForGpuRasterization(bool isSuitable) override; |
74 | 74 |
75 private: | 75 private: |
76 scoped_refptr<cc::DisplayItemList> display_item_list_; | 76 scoped_refptr<cc::DisplayItemList> display_item_list_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); | 78 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace cc_blink | 81 } // namespace cc_blink |
82 | 82 |
83 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ | 83 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ |
OLD | NEW |