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

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

Issue 367833003: cc: Start using raster/eviction iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_impl.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_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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 3102 matching lines...) Expand 10 before | Expand all | Expand 10 after
3113 void LayerTreeHostImpl::SetTreePriority(TreePriority priority) { 3113 void LayerTreeHostImpl::SetTreePriority(TreePriority priority) {
3114 if (!tile_manager_) 3114 if (!tile_manager_)
3115 return; 3115 return;
3116 3116
3117 if (global_tile_state_.tree_priority == priority) 3117 if (global_tile_state_.tree_priority == priority)
3118 return; 3118 return;
3119 global_tile_state_.tree_priority = priority; 3119 global_tile_state_.tree_priority = priority;
3120 DidModifyTilePriorities(); 3120 DidModifyTilePriorities();
3121 } 3121 }
3122 3122
3123 TreePriority LayerTreeHostImpl::GetTreePriority() const {
3124 return global_tile_state_.tree_priority;
3125 }
3126
3123 void LayerTreeHostImpl::UpdateCurrentBeginFrameArgs( 3127 void LayerTreeHostImpl::UpdateCurrentBeginFrameArgs(
3124 const BeginFrameArgs& args) { 3128 const BeginFrameArgs& args) {
3125 DCHECK(!current_begin_frame_args_.IsValid()); 3129 DCHECK(!current_begin_frame_args_.IsValid());
3126 current_begin_frame_args_ = args; 3130 current_begin_frame_args_ = args;
3127 // TODO(skyostil): Stop overriding the frame time once the usage of frame 3131 // TODO(skyostil): Stop overriding the frame time once the usage of frame
3128 // timing is unified. 3132 // timing is unified.
3129 current_begin_frame_args_.frame_time = gfx::FrameTime::Now(); 3133 current_begin_frame_args_.frame_time = gfx::FrameTime::Now();
3130 } 3134 }
3131 3135
3132 void LayerTreeHostImpl::ResetCurrentBeginFrameArgsForNextFrame() { 3136 void LayerTreeHostImpl::ResetCurrentBeginFrameArgsForNextFrame() {
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
3379 } 3383 }
3380 3384
3381 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 3385 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
3382 std::vector<PictureLayerImpl*>::iterator it = 3386 std::vector<PictureLayerImpl*>::iterator it =
3383 std::find(picture_layers_.begin(), picture_layers_.end(), layer); 3387 std::find(picture_layers_.begin(), picture_layers_.end(), layer);
3384 DCHECK(it != picture_layers_.end()); 3388 DCHECK(it != picture_layers_.end());
3385 picture_layers_.erase(it); 3389 picture_layers_.erase(it);
3386 } 3390 }
3387 3391
3388 } // namespace cc 3392 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698