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/location.h" | 10 #include "base/location.h" |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 } | 1101 } |
1102 | 1102 |
1103 bool Layer::NeedMoreUpdates() { | 1103 bool Layer::NeedMoreUpdates() { |
1104 return false; | 1104 return false; |
1105 } | 1105 } |
1106 | 1106 |
1107 bool Layer::IsSuitableForGpuRasterization() const { | 1107 bool Layer::IsSuitableForGpuRasterization() const { |
1108 return true; | 1108 return true; |
1109 } | 1109 } |
1110 | 1110 |
1111 scoped_refptr<base::debug::ConvertableToTraceFormat> Layer::TakeDebugInfo() { | 1111 scoped_refptr<base::trace_event::ConvertableToTraceFormat> |
| 1112 Layer::TakeDebugInfo() { |
1112 if (client_) | 1113 if (client_) |
1113 return client_->TakeDebugInfo(); | 1114 return client_->TakeDebugInfo(); |
1114 else | 1115 else |
1115 return nullptr; | 1116 return nullptr; |
1116 } | 1117 } |
1117 | 1118 |
1118 void Layer::SetHasRenderSurface(bool has_render_surface) { | 1119 void Layer::SetHasRenderSurface(bool has_render_surface) { |
1119 if (has_render_surface_ == has_render_surface) | 1120 if (has_render_surface_ == has_render_surface) |
1120 return; | 1121 return; |
1121 has_render_surface_ = has_render_surface; | 1122 has_render_surface_ = has_render_surface; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 } | 1312 } |
1312 | 1313 |
1313 void Layer::SetFrameTimingRequests( | 1314 void Layer::SetFrameTimingRequests( |
1314 const std::vector<FrameTimingRequest>& requests) { | 1315 const std::vector<FrameTimingRequest>& requests) { |
1315 frame_timing_requests_ = requests; | 1316 frame_timing_requests_ = requests; |
1316 frame_timing_requests_dirty_ = true; | 1317 frame_timing_requests_dirty_ = true; |
1317 SetNeedsCommit(); | 1318 SetNeedsCommit(); |
1318 } | 1319 } |
1319 | 1320 |
1320 } // namespace cc | 1321 } // namespace cc |
OLD | NEW |