| 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 struct WebFloatRect; | 26 struct WebFloatRect; |
| 27 struct WebFloatPoint; |
| 27 struct WebRect; | 28 struct WebRect; |
| 28 } | 29 } |
| 29 | 30 |
| 30 namespace cc { | 31 namespace cc { |
| 31 class DisplayItemListSettings; | 32 class DisplayItemListSettings; |
| 32 class FilterOperations; | 33 class FilterOperations; |
| 33 } | 34 } |
| 34 | 35 |
| 35 namespace cc_blink { | 36 namespace cc_blink { |
| 36 | 37 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 55 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override; | 56 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override; |
| 56 void appendEndFloatClipItem() override; | 57 void appendEndFloatClipItem() override; |
| 57 void appendTransformItem(const SkMatrix44& matrix) override; | 58 void appendTransformItem(const SkMatrix44& matrix) override; |
| 58 void appendEndTransformItem() override; | 59 void appendEndTransformItem() override; |
| 59 void appendCompositingItem(float opacity, | 60 void appendCompositingItem(float opacity, |
| 60 SkXfermode::Mode, | 61 SkXfermode::Mode, |
| 61 SkRect* bounds, | 62 SkRect* bounds, |
| 62 SkColorFilter*) override; | 63 SkColorFilter*) override; |
| 63 void appendEndCompositingItem() override; | 64 void appendEndCompositingItem() override; |
| 64 void appendFilterItem(const cc::FilterOperations& filters, | 65 void appendFilterItem(const cc::FilterOperations& filters, |
| 65 const blink::WebFloatRect& filter_bounds) override; | 66 const blink::WebFloatRect& filter_bounds, |
| 67 const blink::WebFloatPoint& origin) override; |
| 66 void appendEndFilterItem() override; | 68 void appendEndFilterItem() override; |
| 67 void appendScrollItem(const blink::WebSize& scrollOffset, | 69 void appendScrollItem(const blink::WebSize& scrollOffset, |
| 68 ScrollContainerId) override; | 70 ScrollContainerId) override; |
| 69 void appendEndScrollItem() override; | 71 void appendEndScrollItem() override; |
| 70 | 72 |
| 71 void setIsSuitableForGpuRasterization(bool isSuitable) override; | 73 void setIsSuitableForGpuRasterization(bool isSuitable) override; |
| 72 | 74 |
| 73 private: | 75 private: |
| 74 scoped_refptr<cc::DisplayItemList> display_item_list_; | 76 scoped_refptr<cc::DisplayItemList> display_item_list_; |
| 75 | 77 |
| 76 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); | 78 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace cc_blink | 81 } // namespace cc_blink |
| 80 | 82 |
| 81 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ | 83 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ |
| OLD | NEW |