| 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::Transform RenderSurfaceImpl::FiltersTransform() const { |
| 175 return owning_layer_->DrawTransform(); |
| 176 } |
| 177 |
| 174 const FilterOperations& RenderSurfaceImpl::BackgroundFilters() const { | 178 const FilterOperations& RenderSurfaceImpl::BackgroundFilters() const { |
| 175 return OwningEffectNode()->background_filters; | 179 return OwningEffectNode()->background_filters; |
| 176 } | 180 } |
| 177 | 181 |
| 178 bool RenderSurfaceImpl::HasCopyRequest() const { | 182 bool RenderSurfaceImpl::HasCopyRequest() const { |
| 179 return OwningEffectNode()->has_copy_request; | 183 return OwningEffectNode()->has_copy_request; |
| 180 } | 184 } |
| 181 | 185 |
| 182 int RenderSurfaceImpl::TransformTreeIndex() const { | 186 int RenderSurfaceImpl::TransformTreeIndex() const { |
| 183 return owning_layer_->transform_tree_index(); | 187 return owning_layer_->transform_tree_index(); |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 | 412 |
| 409 RenderPassDrawQuad* quad = | 413 RenderPassDrawQuad* quad = |
| 410 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 414 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
| 411 quad->SetNew(shared_quad_state, content_rect(), visible_layer_rect, | 415 quad->SetNew(shared_quad_state, content_rect(), visible_layer_rect, |
| 412 render_pass_id, mask_resource_id, mask_uv_scale, | 416 render_pass_id, mask_resource_id, mask_uv_scale, |
| 413 mask_texture_size, Filters(), owning_layer_to_target_scale, | 417 mask_texture_size, Filters(), owning_layer_to_target_scale, |
| 414 BackgroundFilters()); | 418 BackgroundFilters()); |
| 415 } | 419 } |
| 416 | 420 |
| 417 } // namespace cc | 421 } // namespace cc |
| OLD | NEW |