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

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

Issue 1633043004: cc: Fix bug where tabs have the wrong scale factor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | cc/trees/layer_tree_impl_unittest.cc » ('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_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
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
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
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698