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

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

Issue 879913002: mechanical rename of base::debug -> base::trace_event for /cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part3
Patch Set: Edited a comment Created 5 years, 10 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
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_client.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 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
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
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
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698