OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/layers/render_surface_impl.h" | 5 #include "cc/layers/render_surface_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 bool RenderSurfaceImpl::HasReplicaMask() const { | 165 bool RenderSurfaceImpl::HasReplicaMask() const { |
166 return OwningEffectNode()->replica_mask_layer_id != | 166 return OwningEffectNode()->replica_mask_layer_id != |
167 EffectTree::kInvalidNodeId; | 167 EffectTree::kInvalidNodeId; |
168 } | 168 } |
169 | 169 |
170 const FilterOperations& RenderSurfaceImpl::Filters() const { | 170 const FilterOperations& RenderSurfaceImpl::Filters() const { |
171 return OwningEffectNode()->filters; | 171 return OwningEffectNode()->filters; |
172 } | 172 } |
173 | 173 |
| 174 gfx::PointF RenderSurfaceImpl::FiltersOrigin() const { |
| 175 return OwningEffectNode()->filters_origin; |
| 176 } |
| 177 |
174 gfx::Transform RenderSurfaceImpl::FiltersTransform() const { | 178 gfx::Transform RenderSurfaceImpl::FiltersTransform() const { |
175 return owning_layer_->DrawTransform(); | 179 return owning_layer_->DrawTransform(); |
176 } | 180 } |
177 | 181 |
178 const FilterOperations& RenderSurfaceImpl::BackgroundFilters() const { | 182 const FilterOperations& RenderSurfaceImpl::BackgroundFilters() const { |
179 return OwningEffectNode()->background_filters; | 183 return OwningEffectNode()->background_filters; |
180 } | 184 } |
181 | 185 |
182 bool RenderSurfaceImpl::HasCopyRequest() const { | 186 bool RenderSurfaceImpl::HasCopyRequest() const { |
183 return OwningEffectNode()->has_copy_request; | 187 return OwningEffectNode()->has_copy_request; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 | 412 |
409 DCHECK(owning_layer_draw_transform.IsScale2d()); | 413 DCHECK(owning_layer_draw_transform.IsScale2d()); |
410 gfx::Vector2dF owning_layer_to_target_scale = | 414 gfx::Vector2dF owning_layer_to_target_scale = |
411 owning_layer_draw_transform.Scale2d(); | 415 owning_layer_draw_transform.Scale2d(); |
412 | 416 |
413 RenderPassDrawQuad* quad = | 417 RenderPassDrawQuad* quad = |
414 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 418 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
415 quad->SetNew(shared_quad_state, content_rect(), visible_layer_rect, | 419 quad->SetNew(shared_quad_state, content_rect(), visible_layer_rect, |
416 render_pass_id, mask_resource_id, mask_uv_scale, | 420 render_pass_id, mask_resource_id, mask_uv_scale, |
417 mask_texture_size, Filters(), owning_layer_to_target_scale, | 421 mask_texture_size, Filters(), owning_layer_to_target_scale, |
418 BackgroundFilters()); | 422 FiltersOrigin(), BackgroundFilters()); |
419 } | 423 } |
420 | 424 |
421 } // namespace cc | 425 } // namespace cc |
OLD | NEW |