| 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/SkRegion.h" | 14 #include "third_party/skia/include/core/SkRegion.h" |
| 15 #include "third_party/skia/include/core/SkXfermode.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 { |
| 26 class WebFilterOperations; | |
| 27 struct WebFloatRect; | 26 struct WebFloatRect; |
| 28 struct WebRect; | 27 struct WebRect; |
| 29 } | 28 } |
| 30 | 29 |
| 31 namespace cc { | 30 namespace cc { |
| 32 class DisplayItemListSettings; | 31 class DisplayItemListSettings; |
| 32 class FilterOperations; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace cc_blink { | 35 namespace cc_blink { |
| 36 | 36 |
| 37 class WebDisplayItemListImpl : public blink::WebDisplayItemList { | 37 class WebDisplayItemListImpl : public blink::WebDisplayItemList { |
| 38 public: | 38 public: |
| 39 CC_BLINK_EXPORT WebDisplayItemListImpl(); | 39 CC_BLINK_EXPORT WebDisplayItemListImpl(); |
| 40 CC_BLINK_EXPORT explicit WebDisplayItemListImpl( | 40 CC_BLINK_EXPORT explicit WebDisplayItemListImpl( |
| 41 cc::DisplayItemList* display_list); | 41 cc::DisplayItemList* display_list); |
| 42 ~WebDisplayItemListImpl() override; | 42 ~WebDisplayItemListImpl() override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 59 void appendTransformItem(const blink::WebRect& visual_rect, | 59 void appendTransformItem(const blink::WebRect& visual_rect, |
| 60 const SkMatrix44& matrix) override; | 60 const SkMatrix44& matrix) override; |
| 61 void appendEndTransformItem(const blink::WebRect& visual_rect) override; | 61 void appendEndTransformItem(const blink::WebRect& visual_rect) override; |
| 62 void appendCompositingItem(const blink::WebRect& visual_rect, | 62 void appendCompositingItem(const blink::WebRect& visual_rect, |
| 63 float opacity, | 63 float opacity, |
| 64 SkXfermode::Mode, | 64 SkXfermode::Mode, |
| 65 SkRect* bounds, | 65 SkRect* bounds, |
| 66 SkColorFilter*) override; | 66 SkColorFilter*) override; |
| 67 void appendEndCompositingItem(const blink::WebRect& visual_rect) override; | 67 void appendEndCompositingItem(const blink::WebRect& visual_rect) override; |
| 68 void appendFilterItem(const blink::WebRect& visual_rect, | 68 void appendFilterItem(const blink::WebRect& visual_rect, |
| 69 const blink::WebFilterOperations& filters, | 69 const cc::FilterOperations& filters, |
| 70 const blink::WebFloatRect& bounds) override; | 70 const blink::WebFloatRect& bounds) override; |
| 71 void appendEndFilterItem(const blink::WebRect& visual_rect) override; | 71 void appendEndFilterItem(const blink::WebRect& visual_rect) override; |
| 72 void appendScrollItem(const blink::WebRect& visual_rect, | 72 void appendScrollItem(const blink::WebRect& visual_rect, |
| 73 const blink::WebSize& scrollOffset, | 73 const blink::WebSize& scrollOffset, |
| 74 ScrollContainerId) override; | 74 ScrollContainerId) override; |
| 75 void appendEndScrollItem(const blink::WebRect& visual_rect) override; | 75 void appendEndScrollItem(const blink::WebRect& visual_rect) override; |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 scoped_refptr<cc::DisplayItemList> display_item_list_; | 78 scoped_refptr<cc::DisplayItemList> display_item_list_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); | 80 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace cc_blink | 83 } // namespace cc_blink |
| 84 | 84 |
| 85 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ | 85 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ |
| OLD | NEW |