Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Adds RasterSource Unittest Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | ui/compositor/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
vmpstr 2017/07/10 16:20:34 nit: I think we might need a SetNeedsCommit here.
malaykeshav 2017/07/10 18:03:53 The value is not synced to the LayerTreeImpl. Does
vmpstr 2017/07/10 18:06:26 Oh you're right, it's just set on the recording so
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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | ui/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698