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

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

Issue 1385043002: cc: Remove SetLayerTreeHostClientReady() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startcomp
Patch Set: sky's offline comment Created 5 years, 2 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_unittest.cc ('k') | cc/trees/layer_tree_host_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_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 use_msaa_(false), 169 use_msaa_(false),
170 gpu_rasterization_status_(GpuRasterizationStatus::OFF_DEVICE), 170 gpu_rasterization_status_(GpuRasterizationStatus::OFF_DEVICE),
171 tree_resources_for_gpu_rasterization_dirty_(false), 171 tree_resources_for_gpu_rasterization_dirty_(false),
172 input_handler_client_(NULL), 172 input_handler_client_(NULL),
173 did_lock_scrolling_layer_(false), 173 did_lock_scrolling_layer_(false),
174 wheel_scrolling_(false), 174 wheel_scrolling_(false),
175 scroll_affects_scroll_handler_(false), 175 scroll_affects_scroll_handler_(false),
176 scroll_layer_id_when_mouse_over_scrollbar_(0), 176 scroll_layer_id_when_mouse_over_scrollbar_(0),
177 tile_priorities_dirty_(false), 177 tile_priorities_dirty_(false),
178 settings_(settings), 178 settings_(settings),
179 visible_(true), 179 visible_(false),
180 cached_managed_memory_policy_(settings.memory_policy_), 180 cached_managed_memory_policy_(settings.memory_policy_),
181 is_synchronous_single_threaded_(!proxy->HasImplThread() && 181 is_synchronous_single_threaded_(!proxy->HasImplThread() &&
182 !settings.single_thread_proxy_scheduler), 182 !settings.single_thread_proxy_scheduler),
183 // Must be initialized after is_synchronous_single_threaded_ and proxy_. 183 // Must be initialized after is_synchronous_single_threaded_ and proxy_.
184 tile_manager_( 184 tile_manager_(
185 TileManager::Create(this, 185 TileManager::Create(this,
186 GetTaskRunner(), 186 GetTaskRunner(),
187 is_synchronous_single_threaded_ 187 is_synchronous_single_threaded_
188 ? std::numeric_limits<size_t>::max() 188 ? std::numeric_limits<size_t>::max()
189 : settings.scheduled_raster_task_limit)), 189 : settings.scheduled_raster_task_limit)),
(...skipping 3412 matching lines...) Expand 10 before | Expand all | Expand 10 after
3602 if (active_tree()) { 3602 if (active_tree()) {
3603 LayerAnimationValueProvider* layer = active_tree()->LayerById(layer_id); 3603 LayerAnimationValueProvider* layer = active_tree()->LayerById(layer_id);
3604 if (layer) 3604 if (layer)
3605 return layer->ScrollOffsetForAnimation(); 3605 return layer->ScrollOffsetForAnimation();
3606 } 3606 }
3607 3607
3608 return gfx::ScrollOffset(); 3608 return gfx::ScrollOffset();
3609 } 3609 }
3610 3610
3611 } // namespace cc 3611 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698