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

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

Issue 16998003: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 | Annotate | Revision Log
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/raster_worker_pool.h" 5 #include "cc/resources/raster_worker_pool.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/debug/devtools_instrumentation.h" 10 #include "cc/debug/devtools_instrumentation.h"
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 404 }
405 405
406 void RasterWorkerPool::SetRasterTasks(RasterTask::Queue* queue) { 406 void RasterWorkerPool::SetRasterTasks(RasterTask::Queue* queue) {
407 raster_tasks_.swap(queue->tasks_); 407 raster_tasks_.swap(queue->tasks_);
408 } 408 }
409 409
410 void RasterWorkerPool::ScheduleRasterTasks(const RootTask& root) { 410 void RasterWorkerPool::ScheduleRasterTasks(const RootTask& root) {
411 scoped_refptr<internal::WorkerPoolTask> new_root(root.internal_); 411 scoped_refptr<internal::WorkerPoolTask> new_root(root.internal_);
412 412
413 TaskGraph graph; 413 TaskGraph graph;
414 BuildTaskGraph(new_root, &graph); 414 BuildTaskGraph(new_root.get(), &graph);
415 WorkerPool::SetTaskGraph(&graph); 415 WorkerPool::SetTaskGraph(&graph);
416 416
417 root_.swap(new_root); 417 root_.swap(new_root);
418 } 418 }
419 419
420 } // namespace cc 420 } // namespace cc
OLDNEW
« no previous file with comments | « base/prefs/testing_pref_service.h ('k') | chrome/browser/chromeos/contacts/gdata_contacts_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698