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

Side by Side Diff: cc/layers/layer.cc

Issue 183563003: cc: Clean up OcclusionTracker template parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: occlusionparams: Created 6 years, 9 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/layers/layer.h ('k') | cc/layers/nine_patch_layer_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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/layers/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 DCHECK(layer_tree_host_); 1064 DCHECK(layer_tree_host_);
1065 1065
1066 // TODO(reveman): Save all layer properties that we depend on not 1066 // TODO(reveman): Save all layer properties that we depend on not
1067 // changing until PushProperties() has been called. crbug.com/231016 1067 // changing until PushProperties() has been called. crbug.com/231016
1068 paint_properties_.bounds = bounds_; 1068 paint_properties_.bounds = bounds_;
1069 paint_properties_.source_frame_number = 1069 paint_properties_.source_frame_number =
1070 layer_tree_host_->source_frame_number(); 1070 layer_tree_host_->source_frame_number();
1071 } 1071 }
1072 1072
1073 bool Layer::Update(ResourceUpdateQueue* queue, 1073 bool Layer::Update(ResourceUpdateQueue* queue,
1074 const OcclusionTracker* occlusion) { 1074 const OcclusionTracker<Layer>* occlusion) {
1075 DCHECK(layer_tree_host_); 1075 DCHECK(layer_tree_host_);
1076 DCHECK_EQ(layer_tree_host_->source_frame_number(), 1076 DCHECK_EQ(layer_tree_host_->source_frame_number(),
1077 paint_properties_.source_frame_number) << 1077 paint_properties_.source_frame_number) <<
1078 "SavePaintProperties must be called for any layer that is painted."; 1078 "SavePaintProperties must be called for any layer that is painted.";
1079 return false; 1079 return false;
1080 } 1080 }
1081 1081
1082 bool Layer::NeedMoreUpdates() { 1082 bool Layer::NeedMoreUpdates() {
1083 return false; 1083 return false;
1084 } 1084 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 if (clip_parent_) 1219 if (clip_parent_)
1220 clip_parent_->RemoveClipChild(this); 1220 clip_parent_->RemoveClipChild(this);
1221 1221
1222 clip_parent_ = NULL; 1222 clip_parent_ = NULL;
1223 } 1223 }
1224 1224
1225 void Layer::RunMicroBenchmark(MicroBenchmark* benchmark) { 1225 void Layer::RunMicroBenchmark(MicroBenchmark* benchmark) {
1226 benchmark->RunOnLayer(this); 1226 benchmark->RunOnLayer(this);
1227 } 1227 }
1228 } // namespace cc 1228 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/nine_patch_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698