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

Side by Side Diff: cc/resources/zero_copy_tile_task_worker_pool.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/resources/zero_copy_tile_task_worker_pool.h ('k') | cc/scheduler/begin_frame_source.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/resources/zero_copy_tile_task_worker_pool.h" 5 #include "cc/resources/zero_copy_tile_task_worker_pool.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 tasks_pending_[task_set] = false; 189 tasks_pending_[task_set] = false;
190 if (tasks_pending_.any()) { 190 if (tasks_pending_.any()) {
191 TRACE_EVENT_ASYNC_STEP_INTO1("cc", "ScheduledTasks", this, "running", 191 TRACE_EVENT_ASYNC_STEP_INTO1("cc", "ScheduledTasks", this, "running",
192 "state", StateAsValue()); 192 "state", StateAsValue());
193 } else { 193 } else {
194 TRACE_EVENT_ASYNC_END0("cc", "ScheduledTasks", this); 194 TRACE_EVENT_ASYNC_END0("cc", "ScheduledTasks", this);
195 } 195 }
196 client_->DidFinishRunningTileTasks(task_set); 196 client_->DidFinishRunningTileTasks(task_set);
197 } 197 }
198 198
199 scoped_refptr<base::debug::ConvertableToTraceFormat> 199 scoped_refptr<base::trace_event::ConvertableToTraceFormat>
200 ZeroCopyTileTaskWorkerPool::StateAsValue() const { 200 ZeroCopyTileTaskWorkerPool::StateAsValue() const {
201 scoped_refptr<base::debug::TracedValue> state = 201 scoped_refptr<base::trace_event::TracedValue> state =
202 new base::debug::TracedValue(); 202 new base::trace_event::TracedValue();
203 203
204 state->BeginArray("tasks_pending"); 204 state->BeginArray("tasks_pending");
205 for (TaskSet task_set = 0; task_set < kNumberOfTaskSets; ++task_set) 205 for (TaskSet task_set = 0; task_set < kNumberOfTaskSets; ++task_set)
206 state->AppendBoolean(tasks_pending_[task_set]); 206 state->AppendBoolean(tasks_pending_[task_set]);
207 state->EndArray(); 207 state->EndArray();
208 return state; 208 return state;
209 } 209 }
210 210
211 } // namespace cc 211 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/zero_copy_tile_task_worker_pool.h ('k') | cc/scheduler/begin_frame_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698