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_host.h" | 5 #include "cc/trees/layer_tree_host.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 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 | 1078 |
1079 void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) { | 1079 void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) { |
1080 if (device_scale_factor_ == device_scale_factor) | 1080 if (device_scale_factor_ == device_scale_factor) |
1081 return; | 1081 return; |
1082 device_scale_factor_ = device_scale_factor; | 1082 device_scale_factor_ = device_scale_factor; |
1083 | 1083 |
1084 property_trees_.needs_rebuild = true; | 1084 property_trees_.needs_rebuild = true; |
1085 SetNeedsCommit(); | 1085 SetNeedsCommit(); |
1086 } | 1086 } |
1087 | 1087 |
| 1088 void LayerTreeHost::SetRecordingScaleFactor(float recording_scale_factor) { |
| 1089 if (recording_scale_factor_ == recording_scale_factor) |
| 1090 return; |
| 1091 recording_scale_factor_ = recording_scale_factor; |
| 1092 } |
| 1093 |
1088 void LayerTreeHost::SetPaintedDeviceScaleFactor( | 1094 void LayerTreeHost::SetPaintedDeviceScaleFactor( |
1089 float painted_device_scale_factor) { | 1095 float painted_device_scale_factor) { |
1090 if (painted_device_scale_factor_ == painted_device_scale_factor) | 1096 if (painted_device_scale_factor_ == painted_device_scale_factor) |
1091 return; | 1097 return; |
1092 painted_device_scale_factor_ = painted_device_scale_factor; | 1098 painted_device_scale_factor_ = painted_device_scale_factor; |
1093 | 1099 |
1094 SetNeedsCommit(); | 1100 SetNeedsCommit(); |
1095 } | 1101 } |
1096 | 1102 |
1097 void LayerTreeHost::SetRasterColorSpace( | 1103 void LayerTreeHost::SetRasterColorSpace( |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 | 1522 |
1517 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { | 1523 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { |
1518 has_copy_request_ = has_copy_request; | 1524 has_copy_request_ = has_copy_request; |
1519 } | 1525 } |
1520 | 1526 |
1521 void LayerTreeHost::RequestBeginMainFrameNotExpected(bool new_state) { | 1527 void LayerTreeHost::RequestBeginMainFrameNotExpected(bool new_state) { |
1522 proxy_->RequestBeginMainFrameNotExpected(new_state); | 1528 proxy_->RequestBeginMainFrameNotExpected(new_state); |
1523 } | 1529 } |
1524 | 1530 |
1525 } // namespace cc | 1531 } // namespace cc |
OLD | NEW |