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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 void WebDisplayItemListImpl::appendTransformItem(const SkMatrix44& matrix) { | 78 void WebDisplayItemListImpl::appendTransformItem(const SkMatrix44& matrix) { |
79 gfx::Transform transform; | 79 gfx::Transform transform; |
80 transform.matrix() = matrix; | 80 transform.matrix() = matrix; |
81 display_item_list_->AppendItem(cc::TransformDisplayItem::Create(transform)); | 81 display_item_list_->AppendItem(cc::TransformDisplayItem::Create(transform)); |
82 } | 82 } |
83 | 83 |
84 void WebDisplayItemListImpl::appendEndTransformItem() { | 84 void WebDisplayItemListImpl::appendEndTransformItem() { |
85 display_item_list_->AppendItem(cc::EndTransformDisplayItem::Create()); | 85 display_item_list_->AppendItem(cc::EndTransformDisplayItem::Create()); |
86 } | 86 } |
87 | 87 |
88 // TODO(pdr): Remove once there are no more callers. | |
89 void WebDisplayItemListImpl::appendTransparencyItem( | |
90 float opacity, | |
91 blink::WebBlendMode blend_mode) { | |
92 display_item_list_->AppendItem(cc::TransparencyDisplayItem::Create( | |
ajuma
2015/02/25 14:16:01
I believe this is the only caller of cc::Transpare
| |
93 opacity, BlendModeToSkia(blend_mode))); | |
94 } | |
95 | |
96 // TODO(pdr): Remove once there are no more callers. | |
97 void WebDisplayItemListImpl::appendEndTransparencyItem() { | |
98 display_item_list_->AppendItem(cc::EndTransparencyDisplayItem::Create()); | |
99 } | |
100 | |
101 void WebDisplayItemListImpl::appendCompositingItem( | 88 void WebDisplayItemListImpl::appendCompositingItem( |
102 float opacity, | 89 float opacity, |
103 SkXfermode::Mode xfermode, | 90 SkXfermode::Mode xfermode, |
104 SkColorFilter* color_filter) { | 91 SkColorFilter* color_filter) { |
105 display_item_list_->AppendItem(cc::CompositingDisplayItem::Create( | 92 display_item_list_->AppendItem(cc::CompositingDisplayItem::Create( |
106 opacity, xfermode, skia::SharePtr(color_filter))); | 93 opacity, xfermode, skia::SharePtr(color_filter))); |
107 } | 94 } |
108 | 95 |
109 void WebDisplayItemListImpl::appendEndCompositingItem() { | 96 void WebDisplayItemListImpl::appendEndCompositingItem() { |
110 display_item_list_->AppendItem(cc::EndCompositingDisplayItem::Create()); | 97 display_item_list_->AppendItem(cc::EndCompositingDisplayItem::Create()); |
(...skipping 21 matching lines...) Expand all Loading... | |
132 } | 119 } |
133 | 120 |
134 void WebDisplayItemListImpl::appendEndScrollItem() { | 121 void WebDisplayItemListImpl::appendEndScrollItem() { |
135 appendEndTransformItem(); | 122 appendEndTransformItem(); |
136 } | 123 } |
137 | 124 |
138 WebDisplayItemListImpl::~WebDisplayItemListImpl() { | 125 WebDisplayItemListImpl::~WebDisplayItemListImpl() { |
139 } | 126 } |
140 | 127 |
141 } // namespace cc_blink | 128 } // namespace cc_blink |
OLD | NEW |