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_blend_mode.h" | 9 #include "cc/blink/web_blend_mode.h" |
10 #include "cc/blink/web_filter_operations_impl.h" | 10 #include "cc/blink/web_filter_operations_impl.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 WebDisplayItemListImpl::WebDisplayItemListImpl() | 28 WebDisplayItemListImpl::WebDisplayItemListImpl() |
29 : display_item_list_(cc::DisplayItemList::Create()) { | 29 : display_item_list_(cc::DisplayItemList::Create()) { |
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)), gfx::PointF(0, 0))); |
39 gfx::PointF(picture->cullRect().x(), picture->cullRect().y()))); | |
40 } | 39 } |
41 | 40 |
42 void WebDisplayItemListImpl::appendDrawingItem( | 41 void WebDisplayItemListImpl::appendDrawingItem( |
43 SkPicture* picture, | 42 SkPicture* picture, |
44 const blink::WebFloatPoint& location) { | 43 const blink::WebFloatPoint& location) { |
45 display_item_list_->AppendItem( | 44 display_item_list_->AppendItem( |
46 cc::DrawingDisplayItem::Create(skia::SharePtr(picture), location)); | 45 cc::DrawingDisplayItem::Create(skia::SharePtr(picture), location)); |
47 } | 46 } |
48 | 47 |
49 void WebDisplayItemListImpl::appendClipItem( | 48 void WebDisplayItemListImpl::appendClipItem( |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 #endif | 123 #endif |
125 | 124 |
126 void WebDisplayItemListImpl::appendEndFilterItem() { | 125 void WebDisplayItemListImpl::appendEndFilterItem() { |
127 display_item_list_->AppendItem(cc::EndFilterDisplayItem::Create()); | 126 display_item_list_->AppendItem(cc::EndFilterDisplayItem::Create()); |
128 } | 127 } |
129 | 128 |
130 WebDisplayItemListImpl::~WebDisplayItemListImpl() { | 129 WebDisplayItemListImpl::~WebDisplayItemListImpl() { |
131 } | 130 } |
132 | 131 |
133 } // namespace cc_blink | 132 } // namespace cc_blink |
OLD | NEW |