| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 const FilterOperations& RenderSurfaceImpl::BackgroundFilters() const { | 146 const FilterOperations& RenderSurfaceImpl::BackgroundFilters() const { |
| 147 return OwningEffectNode()->background_filters; | 147 return OwningEffectNode()->background_filters; |
| 148 } | 148 } |
| 149 | 149 |
| 150 bool RenderSurfaceImpl::HasCopyRequest() const { | 150 bool RenderSurfaceImpl::HasCopyRequest() const { |
| 151 return OwningEffectNode()->has_copy_request; | 151 return OwningEffectNode()->has_copy_request; |
| 152 } | 152 } |
| 153 | 153 |
| 154 int RenderSurfaceImpl::TransformTreeIndex() const { | 154 int RenderSurfaceImpl::TransformTreeIndex() const { |
| 155 return owning_layer_->transform_tree_index(); | 155 return OwningEffectNode()->transform_id; |
| 156 } | 156 } |
| 157 | 157 |
| 158 int RenderSurfaceImpl::ClipTreeIndex() const { | 158 int RenderSurfaceImpl::ClipTreeIndex() const { |
| 159 return OwningEffectNode()->clip_id; | 159 return OwningEffectNode()->clip_id; |
| 160 } | 160 } |
| 161 | 161 |
| 162 int RenderSurfaceImpl::EffectTreeIndex() const { | 162 int RenderSurfaceImpl::EffectTreeIndex() const { |
| 163 DCHECK_EQ(effect_tree_index_, | 163 DCHECK_EQ(effect_tree_index_, |
| 164 layer_tree_impl_->property_trees() | 164 layer_tree_impl_->property_trees() |
| 165 ->layer_id_to_effect_node_index[stable_effect_id_]); | 165 ->layer_id_to_effect_node_index[stable_effect_id_]); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 | 413 |
| 414 RenderPassDrawQuad* quad = | 414 RenderPassDrawQuad* quad = |
| 415 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 415 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
| 416 quad->SetNew(shared_quad_state, content_rect(), visible_layer_rect, | 416 quad->SetNew(shared_quad_state, content_rect(), visible_layer_rect, |
| 417 GetRenderPassId(), mask_resource_id, mask_uv_scale, | 417 GetRenderPassId(), mask_resource_id, mask_uv_scale, |
| 418 mask_texture_size, owning_layer_to_target_scale, | 418 mask_texture_size, owning_layer_to_target_scale, |
| 419 FiltersOrigin()); | 419 FiltersOrigin()); |
| 420 } | 420 } |
| 421 | 421 |
| 422 } // namespace cc | 422 } // namespace cc |
| OLD | NEW |