| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 return DebugColors::SurfaceBorderWidth( | 120 return DebugColors::SurfaceBorderWidth( |
| 121 layer_tree_impl_ ? layer_tree_impl_->device_scale_factor() : 1); | 121 layer_tree_impl_ ? layer_tree_impl_->device_scale_factor() : 1); |
| 122 } | 122 } |
| 123 | 123 |
| 124 LayerImpl* RenderSurfaceImpl::MaskLayer() { | 124 LayerImpl* RenderSurfaceImpl::MaskLayer() { |
| 125 int mask_layer_id = OwningEffectNode()->mask_layer_id; | 125 int mask_layer_id = OwningEffectNode()->mask_layer_id; |
| 126 return layer_tree_impl_->LayerById(mask_layer_id); | 126 return layer_tree_impl_->LayerById(mask_layer_id); |
| 127 } | 127 } |
| 128 | 128 |
| 129 bool RenderSurfaceImpl::HasMask() const { | 129 bool RenderSurfaceImpl::HasMask() const { |
| 130 return OwningEffectNode()->mask_layer_id != EffectTree::kInvalidNodeId; | 130 return OwningEffectNode()->mask_layer_id != Layer::INVALID_ID; |
| 131 } | 131 } |
| 132 | 132 |
| 133 const FilterOperations& RenderSurfaceImpl::Filters() const { | 133 const FilterOperations& RenderSurfaceImpl::Filters() const { |
| 134 return OwningEffectNode()->filters; | 134 return OwningEffectNode()->filters; |
| 135 } | 135 } |
| 136 | 136 |
| 137 gfx::PointF RenderSurfaceImpl::FiltersOrigin() const { | 137 gfx::PointF RenderSurfaceImpl::FiltersOrigin() const { |
| 138 return OwningEffectNode()->filters_origin; | 138 return OwningEffectNode()->filters_origin; |
| 139 } | 139 } |
| 140 | 140 |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 NOTIMPLEMENTED(); | 538 NOTIMPLEMENTED(); |
| 539 break; | 539 break; |
| 540 default: | 540 default: |
| 541 NOTREACHED(); | 541 NOTREACHED(); |
| 542 break; | 542 break; |
| 543 } | 543 } |
| 544 } | 544 } |
| 545 } | 545 } |
| 546 | 546 |
| 547 } // namespace cc | 547 } // namespace cc |
| OLD | NEW |