| 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/SkBlendMode.h" |
| 15 #include "third_party/skia/include/core/SkClipOp.h" | |
| 16 #include "ui/gfx/geometry/point_f.h" | 15 #include "ui/gfx/geometry/point_f.h" |
| 17 | 16 |
| 18 class SkColorFilter; | 17 class SkColorFilter; |
| 19 class SkMatrix44; | 18 class SkMatrix44; |
| 20 class SkPath; | 19 class SkPath; |
| 21 class SkPicture; | 20 class SkPicture; |
| 22 class SkRRect; | 21 class SkRRect; |
| 23 | 22 |
| 24 namespace blink { | 23 namespace blink { |
| 25 struct WebFloatRect; | 24 struct WebFloatRect; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 41 ~WebDisplayItemListImpl() override; | 40 ~WebDisplayItemListImpl() override; |
| 42 | 41 |
| 43 // blink::WebDisplayItemList implementation. | 42 // blink::WebDisplayItemList implementation. |
| 44 void appendDrawingItem(const blink::WebRect& visual_rect, | 43 void appendDrawingItem(const blink::WebRect& visual_rect, |
| 45 sk_sp<const SkPicture> picture) override; | 44 sk_sp<const SkPicture> picture) override; |
| 46 void appendClipItem( | 45 void appendClipItem( |
| 47 const blink::WebRect& clip_rect, | 46 const blink::WebRect& clip_rect, |
| 48 const blink::WebVector<SkRRect>& rounded_clip_rects) override; | 47 const blink::WebVector<SkRRect>& rounded_clip_rects) override; |
| 49 void appendEndClipItem() override; | 48 void appendEndClipItem() override; |
| 50 void appendClipPathItem(const SkPath& clip_path, | 49 void appendClipPathItem(const SkPath& clip_path, |
| 51 SkClipOp clip_op, | |
| 52 bool antialias) override; | 50 bool antialias) override; |
| 53 void appendEndClipPathItem() override; | 51 void appendEndClipPathItem() override; |
| 54 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override; | 52 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override; |
| 55 void appendEndFloatClipItem() override; | 53 void appendEndFloatClipItem() override; |
| 56 void appendTransformItem(const SkMatrix44& matrix) override; | 54 void appendTransformItem(const SkMatrix44& matrix) override; |
| 57 void appendEndTransformItem() override; | 55 void appendEndTransformItem() override; |
| 58 void appendCompositingItem(float opacity, | 56 void appendCompositingItem(float opacity, |
| 59 SkBlendMode, | 57 SkBlendMode, |
| 60 SkRect* bounds, | 58 SkRect* bounds, |
| 61 SkColorFilter*) override; | 59 SkColorFilter*) override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 74 | 72 |
| 75 private: | 73 private: |
| 76 scoped_refptr<cc::DisplayItemList> display_item_list_; | 74 scoped_refptr<cc::DisplayItemList> display_item_list_; |
| 77 | 75 |
| 78 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); | 76 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); |
| 79 }; | 77 }; |
| 80 | 78 |
| 81 } // namespace cc_blink | 79 } // namespace cc_blink |
| 82 | 80 |
| 83 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ | 81 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ |
| OLD | NEW |