| 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" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 class WebDisplayItemListImpl : public blink::WebDisplayItemList { | 35 class WebDisplayItemListImpl : public blink::WebDisplayItemList { |
| 36 public: | 36 public: |
| 37 CC_BLINK_EXPORT WebDisplayItemListImpl(); | 37 CC_BLINK_EXPORT WebDisplayItemListImpl(); |
| 38 CC_BLINK_EXPORT explicit WebDisplayItemListImpl( | 38 CC_BLINK_EXPORT explicit WebDisplayItemListImpl( |
| 39 cc::DisplayItemList* display_list); | 39 cc::DisplayItemList* display_list); |
| 40 ~WebDisplayItemListImpl() override; | 40 ~WebDisplayItemListImpl() override; |
| 41 | 41 |
| 42 // blink::WebDisplayItemList implementation. | 42 // blink::WebDisplayItemList implementation. |
| 43 void appendDrawingItem(const blink::WebRect& visual_rect, | 43 void appendDrawingItem(const blink::WebRect& visual_rect, |
| 44 sk_sp<const cc::PaintRecord> picture) override; | 44 sk_sp<const cc::PaintRecord> record) override; |
| 45 void appendClipItem( | 45 void appendClipItem( |
| 46 const blink::WebRect& clip_rect, | 46 const blink::WebRect& clip_rect, |
| 47 const blink::WebVector<SkRRect>& rounded_clip_rects) override; | 47 const blink::WebVector<SkRRect>& rounded_clip_rects) override; |
| 48 void appendEndClipItem() override; | 48 void appendEndClipItem() override; |
| 49 void appendClipPathItem(const SkPath& clip_path, | 49 void appendClipPathItem(const SkPath& clip_path, |
| 50 bool antialias) override; | 50 bool antialias) override; |
| 51 void appendEndClipPathItem() override; | 51 void appendEndClipPathItem() override; |
| 52 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override; | 52 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override; |
| 53 void appendEndFloatClipItem() override; | 53 void appendEndFloatClipItem() override; |
| 54 void appendTransformItem(const SkMatrix44& matrix) override; | 54 void appendTransformItem(const SkMatrix44& matrix) override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 scoped_refptr<cc::DisplayItemList> display_item_list_; | 74 scoped_refptr<cc::DisplayItemList> display_item_list_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); | 76 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace cc_blink | 79 } // namespace cc_blink |
| 80 | 80 |
| 81 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ | 81 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ |
| OLD | NEW |