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 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 | 1038 |
1039 void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) { | 1039 void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) { |
1040 if (device_scale_factor_ == device_scale_factor) | 1040 if (device_scale_factor_ == device_scale_factor) |
1041 return; | 1041 return; |
1042 device_scale_factor_ = device_scale_factor; | 1042 device_scale_factor_ = device_scale_factor; |
1043 | 1043 |
1044 property_trees_.needs_rebuild = true; | 1044 property_trees_.needs_rebuild = true; |
1045 SetNeedsCommit(); | 1045 SetNeedsCommit(); |
1046 } | 1046 } |
1047 | 1047 |
| 1048 void LayerTreeHost::SetRecordingScaleFactor(float recording_scale_factor) { |
| 1049 if (recording_scale_factor_ == recording_scale_factor) |
| 1050 return; |
| 1051 recording_scale_factor_ = recording_scale_factor; |
| 1052 } |
| 1053 |
1048 void LayerTreeHost::SetPaintedDeviceScaleFactor( | 1054 void LayerTreeHost::SetPaintedDeviceScaleFactor( |
1049 float painted_device_scale_factor) { | 1055 float painted_device_scale_factor) { |
1050 if (painted_device_scale_factor_ == painted_device_scale_factor) | 1056 if (painted_device_scale_factor_ == painted_device_scale_factor) |
1051 return; | 1057 return; |
1052 painted_device_scale_factor_ = painted_device_scale_factor; | 1058 painted_device_scale_factor_ = painted_device_scale_factor; |
1053 | 1059 |
1054 SetNeedsCommit(); | 1060 SetNeedsCommit(); |
1055 } | 1061 } |
1056 | 1062 |
1057 void LayerTreeHost::SetRasterColorSpace( | 1063 void LayerTreeHost::SetRasterColorSpace( |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1477 | 1483 |
1478 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { | 1484 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { |
1479 has_copy_request_ = has_copy_request; | 1485 has_copy_request_ = has_copy_request; |
1480 } | 1486 } |
1481 | 1487 |
1482 void LayerTreeHost::RequestBeginMainFrameNotExpected(bool new_state) { | 1488 void LayerTreeHost::RequestBeginMainFrameNotExpected(bool new_state) { |
1483 proxy_->RequestBeginMainFrameNotExpected(new_state); | 1489 proxy_->RequestBeginMainFrameNotExpected(new_state); |
1484 } | 1490 } |
1485 | 1491 |
1486 } // namespace cc | 1492 } // namespace cc |
OLD | NEW |