| 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 #include "cc/blink/web_display_item_list_impl.h" | 5 #include "cc/blink/web_display_item_list_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "cc/blink/web_filter_operations_impl.h" | 9 #include "cc/blink/web_filter_operations_impl.h" |
| 10 #include "cc/resources/clip_display_item.h" | 10 #include "cc/resources/clip_display_item.h" |
| 11 #include "cc/resources/clip_path_display_item.h" | 11 #include "cc/resources/clip_path_display_item.h" |
| 12 #include "cc/resources/compositing_display_item.h" | 12 #include "cc/resources/compositing_display_item.h" |
| 13 #include "cc/resources/drawing_display_item.h" | 13 #include "cc/resources/drawing_display_item.h" |
| 14 #include "cc/resources/filter_display_item.h" | 14 #include "cc/resources/filter_display_item.h" |
| 15 #include "cc/resources/float_clip_display_item.h" | 15 #include "cc/resources/float_clip_display_item.h" |
| 16 #include "cc/resources/transform_display_item.h" | 16 #include "cc/resources/transform_display_item.h" |
| 17 #include "skia/ext/refptr.h" | 17 #include "skia/ext/refptr.h" |
| 18 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 18 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
| 19 #include "third_party/WebKit/public/platform/WebRect.h" | 19 #include "third_party/WebKit/public/platform/WebRect.h" |
| 20 #include "third_party/skia/include/core/SkColorFilter.h" | 20 #include "third_party/skia/include/core/SkColorFilter.h" |
| 21 #include "third_party/skia/include/core/SkPicture.h" | 21 #include "third_party/skia/include/core/SkPicture.h" |
| 22 #include "third_party/skia/include/utils/SkMatrix44.h" | 22 #include "third_party/skia/include/utils/SkMatrix44.h" |
| 23 #include "ui/gfx/geometry/safe_integer_conversions.h" | 23 #include "ui/gfx/geometry/safe_integer_conversions.h" |
| 24 #include "ui/gfx/transform.h" | 24 #include "ui/gfx/transform.h" |
| 25 | 25 |
| 26 namespace cc_blink { | 26 namespace cc_blink { |
| 27 | 27 |
| 28 WebDisplayItemListImpl::WebDisplayItemListImpl() | 28 WebDisplayItemListImpl::WebDisplayItemListImpl(const blink::WebRect& layer_rect) |
| 29 : display_item_list_(cc::DisplayItemList::Create()) { | 29 : display_item_list_(cc::DisplayItemList::Create(layer_rect)) { |
| 30 } | 30 } |
| 31 | 31 |
| 32 scoped_refptr<cc::DisplayItemList> WebDisplayItemListImpl::ToDisplayItemList() { | 32 scoped_refptr<cc::DisplayItemList> WebDisplayItemListImpl::ToDisplayItemList() { |
| 33 return display_item_list_; | 33 return display_item_list_; |
| 34 } | 34 } |
| 35 | 35 |
| 36 void WebDisplayItemListImpl::appendDrawingItem(const SkPicture* picture) { | 36 void WebDisplayItemListImpl::appendDrawingItem(const SkPicture* picture) { |
| 37 display_item_list_->AppendItem(cc::DrawingDisplayItem::Create( | 37 display_item_list_->AppendItem(cc::DrawingDisplayItem::Create( |
| 38 skia::SharePtr(const_cast<SkPicture*>(picture)))); | 38 skia::SharePtr(const_cast<SkPicture*>(picture)))); |
| 39 } | 39 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 123 } |
| 124 | 124 |
| 125 void WebDisplayItemListImpl::appendEndScrollItem() { | 125 void WebDisplayItemListImpl::appendEndScrollItem() { |
| 126 appendEndTransformItem(); | 126 appendEndTransformItem(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 WebDisplayItemListImpl::~WebDisplayItemListImpl() { | 129 WebDisplayItemListImpl::~WebDisplayItemListImpl() { |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace cc_blink | 132 } // namespace cc_blink |
| OLD | NEW |