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/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 } | 1064 } |
1065 | 1065 |
1066 bool Layer::NeedMoreUpdates() { | 1066 bool Layer::NeedMoreUpdates() { |
1067 return false; | 1067 return false; |
1068 } | 1068 } |
1069 | 1069 |
1070 bool Layer::IsSuitableForGpuRasterization() const { | 1070 bool Layer::IsSuitableForGpuRasterization() const { |
1071 return true; | 1071 return true; |
1072 } | 1072 } |
1073 | 1073 |
1074 scoped_refptr<base::debug::ConvertableToTraceFormat> Layer::TakeDebugInfo() { | 1074 scoped_refptr<LayerDebugInfo> Layer::TakeDebugInfo() { |
1075 if (client_) | 1075 if (client_) |
1076 return client_->TakeDebugInfo(); | 1076 return client_->TakeDebugInfo(); |
1077 else | 1077 else |
1078 return NULL; | 1078 return NULL; |
1079 } | 1079 } |
1080 | 1080 |
1081 void Layer::CreateRenderSurface() { | 1081 void Layer::CreateRenderSurface() { |
1082 DCHECK(!draw_properties_.render_surface); | 1082 DCHECK(!draw_properties_.render_surface); |
1083 draw_properties_.render_surface = make_scoped_ptr(new RenderSurface(this)); | 1083 draw_properties_.render_surface = make_scoped_ptr(new RenderSurface(this)); |
1084 draw_properties_.render_target = this; | 1084 draw_properties_.render_target = this; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 | 1233 |
1234 void Layer::RunMicroBenchmark(MicroBenchmark* benchmark) { | 1234 void Layer::RunMicroBenchmark(MicroBenchmark* benchmark) { |
1235 benchmark->RunOnLayer(this); | 1235 benchmark->RunOnLayer(this); |
1236 } | 1236 } |
1237 | 1237 |
1238 bool Layer::HasDelegatedContent() const { | 1238 bool Layer::HasDelegatedContent() const { |
1239 return false; | 1239 return false; |
1240 } | 1240 } |
1241 | 1241 |
1242 } // namespace cc | 1242 } // namespace cc |
OLD | NEW |