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

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

Issue 2641023002: cc: Remove ReflectedMainFrameState. (Closed)
Patch Set: Created 3 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 | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_in_process.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_common.h" 5 #include "cc/trees/layer_tree_host_common.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 LayerTreeHostCommon::ScrollbarsUpdateInfo::ScrollbarsUpdateInfo(int layer_id, 176 LayerTreeHostCommon::ScrollbarsUpdateInfo::ScrollbarsUpdateInfo(int layer_id,
177 bool hidden) 177 bool hidden)
178 : layer_id(layer_id), hidden(hidden) {} 178 : layer_id(layer_id), hidden(hidden) {}
179 179
180 bool LayerTreeHostCommon::ScrollbarsUpdateInfo::operator==( 180 bool LayerTreeHostCommon::ScrollbarsUpdateInfo::operator==(
181 const LayerTreeHostCommon::ScrollbarsUpdateInfo& other) const { 181 const LayerTreeHostCommon::ScrollbarsUpdateInfo& other) const {
182 return layer_id == other.layer_id && hidden == other.hidden; 182 return layer_id == other.layer_id && hidden == other.hidden;
183 } 183 }
184 184
185 ReflectedMainFrameState::ReflectedMainFrameState() : page_scale_delta(1.0f) {}
186
187 ReflectedMainFrameState::~ReflectedMainFrameState() = default;
188
189 ScrollAndScaleSet::ScrollAndScaleSet() 185 ScrollAndScaleSet::ScrollAndScaleSet()
190 : page_scale_delta(1.f), top_controls_delta(0.f) { 186 : page_scale_delta(1.f), top_controls_delta(0.f) {
191 } 187 }
192 188
193 ScrollAndScaleSet::~ScrollAndScaleSet() {} 189 ScrollAndScaleSet::~ScrollAndScaleSet() {}
194 190
195 static inline void SetMaskLayersAreDrawnRenderSurfaceLayerListMembers( 191 static inline void SetMaskLayersAreDrawnRenderSurfaceLayerListMembers(
196 RenderSurfaceImpl* surface, 192 RenderSurfaceImpl* surface,
197 PropertyTrees* property_trees) { 193 PropertyTrees* property_trees) {
198 LayerImpl* mask_layer = surface->MaskLayer(); 194 LayerImpl* mask_layer = surface->MaskLayer();
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 647
652 PropertyTrees* GetPropertyTrees(Layer* layer) { 648 PropertyTrees* GetPropertyTrees(Layer* layer) {
653 return layer->GetLayerTree()->property_trees(); 649 return layer->GetLayerTree()->property_trees();
654 } 650 }
655 651
656 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { 652 PropertyTrees* GetPropertyTrees(LayerImpl* layer) {
657 return layer->layer_tree_impl()->property_trees(); 653 return layer->layer_tree_impl()->property_trees();
658 } 654 }
659 655
660 } // namespace cc 656 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_in_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698