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

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

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 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') | chrome/browser/ui/views/autofill/card_unmask_prompt_views.h » ('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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 1030
1031 void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) { 1031 void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) {
1032 if (device_scale_factor_ == device_scale_factor) 1032 if (device_scale_factor_ == device_scale_factor)
1033 return; 1033 return;
1034 device_scale_factor_ = device_scale_factor; 1034 device_scale_factor_ = device_scale_factor;
1035 1035
1036 property_trees_.needs_rebuild = true; 1036 property_trees_.needs_rebuild = true;
1037 SetNeedsCommit(); 1037 SetNeedsCommit();
1038 } 1038 }
1039 1039
1040 void LayerTreeHost::SetRecordingScaleFactor(float recording_scale_factor) {
1041 if (recording_scale_factor_ == recording_scale_factor)
1042 return;
1043 recording_scale_factor_ = recording_scale_factor;
1044 }
1045
1040 void LayerTreeHost::SetPaintedDeviceScaleFactor( 1046 void LayerTreeHost::SetPaintedDeviceScaleFactor(
1041 float painted_device_scale_factor) { 1047 float painted_device_scale_factor) {
1042 if (painted_device_scale_factor_ == painted_device_scale_factor) 1048 if (painted_device_scale_factor_ == painted_device_scale_factor)
1043 return; 1049 return;
1044 painted_device_scale_factor_ = painted_device_scale_factor; 1050 painted_device_scale_factor_ = painted_device_scale_factor;
1045 1051
1046 SetNeedsCommit(); 1052 SetNeedsCommit();
1047 } 1053 }
1048 1054
1049 void LayerTreeHost::SetRasterColorSpace( 1055 void LayerTreeHost::SetRasterColorSpace(
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 1475
1470 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { 1476 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) {
1471 has_copy_request_ = has_copy_request; 1477 has_copy_request_ = has_copy_request;
1472 } 1478 }
1473 1479
1474 void LayerTreeHost::RequestBeginMainFrameNotExpected(bool new_state) { 1480 void LayerTreeHost::RequestBeginMainFrameNotExpected(bool new_state) {
1475 proxy_->RequestBeginMainFrameNotExpected(new_state); 1481 proxy_->RequestBeginMainFrameNotExpected(new_state);
1476 } 1482 }
1477 1483
1478 } // namespace cc 1484 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | chrome/browser/ui/views/autofill/card_unmask_prompt_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698