| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |