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

Side by Side Diff: cc/scheduler/scheduler_state_machine.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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/scheduler/scheduler_state_machine.h ('k') | cc/scheduler/scheduler_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/scheduler/scheduler_state_machine.h" 5 #include "cc/scheduler/scheduler_state_machine.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 return "ACTION_BEGIN_OUTPUT_SURFACE_CREATION"; 182 return "ACTION_BEGIN_OUTPUT_SURFACE_CREATION";
183 case ACTION_PREPARE_TILES: 183 case ACTION_PREPARE_TILES:
184 return "ACTION_PREPARE_TILES"; 184 return "ACTION_PREPARE_TILES";
185 case ACTION_INVALIDATE_OUTPUT_SURFACE: 185 case ACTION_INVALIDATE_OUTPUT_SURFACE:
186 return "ACTION_INVALIDATE_OUTPUT_SURFACE"; 186 return "ACTION_INVALIDATE_OUTPUT_SURFACE";
187 } 187 }
188 NOTREACHED(); 188 NOTREACHED();
189 return "???"; 189 return "???";
190 } 190 }
191 191
192 scoped_ptr<base::trace_event::ConvertableToTraceFormat> 192 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
193 SchedulerStateMachine::AsValue() const { 193 SchedulerStateMachine::AsValue() const {
194 scoped_ptr<base::trace_event::TracedValue> state( 194 std::unique_ptr<base::trace_event::TracedValue> state(
195 new base::trace_event::TracedValue()); 195 new base::trace_event::TracedValue());
196 AsValueInto(state.get()); 196 AsValueInto(state.get());
197 return std::move(state); 197 return std::move(state);
198 } 198 }
199 199
200 void SchedulerStateMachine::AsValueInto( 200 void SchedulerStateMachine::AsValueInto(
201 base::trace_event::TracedValue* state) const { 201 base::trace_event::TracedValue* state) const {
202 state->BeginDictionary("major_state"); 202 state->BeginDictionary("major_state");
203 state->SetString("next_action", ActionToString(NextAction())); 203 state->SetString("next_action", ActionToString(NextAction()));
204 state->SetString("begin_impl_frame_state", 204 state->SetString("begin_impl_frame_state",
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 case OUTPUT_SURFACE_ACTIVE: 1152 case OUTPUT_SURFACE_ACTIVE:
1153 case OUTPUT_SURFACE_WAITING_FOR_FIRST_COMMIT: 1153 case OUTPUT_SURFACE_WAITING_FOR_FIRST_COMMIT:
1154 case OUTPUT_SURFACE_WAITING_FOR_FIRST_ACTIVATION: 1154 case OUTPUT_SURFACE_WAITING_FOR_FIRST_ACTIVATION:
1155 return true; 1155 return true;
1156 } 1156 }
1157 NOTREACHED(); 1157 NOTREACHED();
1158 return false; 1158 return false;
1159 } 1159 }
1160 1160
1161 } // namespace cc 1161 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_state_machine.h ('k') | cc/scheduler/scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698