| 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/trees/layer_tree_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 | 592 |
| 593 set_needs_update_draw_properties(); | 593 set_needs_update_draw_properties(); |
| 594 DidUpdateScrollState(inner_viewport_scroll_layer_id_); | 594 DidUpdateScrollState(inner_viewport_scroll_layer_id_); |
| 595 } | 595 } |
| 596 | 596 |
| 597 void LayerTreeImpl::SetDeviceScaleFactor(float device_scale_factor) { | 597 void LayerTreeImpl::SetDeviceScaleFactor(float device_scale_factor) { |
| 598 if (device_scale_factor == device_scale_factor_) | 598 if (device_scale_factor == device_scale_factor_) |
| 599 return; | 599 return; |
| 600 device_scale_factor_ = device_scale_factor; | 600 device_scale_factor_ = device_scale_factor; |
| 601 | 601 |
| 602 set_needs_update_draw_properties(); |
| 602 if (IsActiveTree()) | 603 if (IsActiveTree()) |
| 603 layer_tree_host_impl_->SetFullRootLayerDamage(); | 604 layer_tree_host_impl_->SetFullRootLayerDamage(); |
| 604 } | 605 } |
| 605 | 606 |
| 606 SyncedProperty<ScaleGroup>* LayerTreeImpl::page_scale_factor() { | 607 SyncedProperty<ScaleGroup>* LayerTreeImpl::page_scale_factor() { |
| 607 return page_scale_factor_.get(); | 608 return page_scale_factor_.get(); |
| 608 } | 609 } |
| 609 | 610 |
| 610 const SyncedProperty<ScaleGroup>* LayerTreeImpl::page_scale_factor() const { | 611 const SyncedProperty<ScaleGroup>* LayerTreeImpl::page_scale_factor() const { |
| 611 return page_scale_factor_.get(); | 612 return page_scale_factor_.get(); |
| (...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2075 const gfx::BoxF& box, | 2076 const gfx::BoxF& box, |
| 2076 gfx::BoxF* bounds) const { | 2077 gfx::BoxF* bounds) const { |
| 2077 *bounds = gfx::BoxF(); | 2078 *bounds = gfx::BoxF(); |
| 2078 return layer_tree_host_impl_->animation_host() | 2079 return layer_tree_host_impl_->animation_host() |
| 2079 ? layer_tree_host_impl_->animation_host() | 2080 ? layer_tree_host_impl_->animation_host() |
| 2080 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) | 2081 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) |
| 2081 : true; | 2082 : true; |
| 2082 } | 2083 } |
| 2083 | 2084 |
| 2084 } // namespace cc | 2085 } // namespace cc |
| OLD | NEW |