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

Side by Side Diff: cc/worker_pool.cc

Issue 12813004: Chromium style checker cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 9 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/worker_pool.h" 5 #include "cc/worker_pool.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/synchronization/condition_variable.h" 10 #include "base/synchronization/condition_variable.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Internal to the worker pool. Any data or logic that needs to be 61 // Internal to the worker pool. Any data or logic that needs to be
62 // shared between threads lives in this class. All members are guarded 62 // shared between threads lives in this class. All members are guarded
63 // by |lock_|. 63 // by |lock_|.
64 class WorkerPool::Inner : public base::DelegateSimpleThread::Delegate { 64 class WorkerPool::Inner : public base::DelegateSimpleThread::Delegate {
65 public: 65 public:
66 Inner(WorkerPool* worker_pool, 66 Inner(WorkerPool* worker_pool,
67 size_t num_threads, 67 size_t num_threads,
68 const std::string& thread_name_prefix, 68 const std::string& thread_name_prefix,
69 bool need_on_task_completed_callback); 69 bool need_on_task_completed_callback);
70 ~Inner(); 70 virtual ~Inner();
71 71
72 void Shutdown(); 72 void Shutdown();
73 73
74 void SetRecordRenderingStats(bool record_rendering_stats); 74 void SetRecordRenderingStats(bool record_rendering_stats);
75 75
76 void GetRenderingStats(RenderingStats* stats); 76 void GetRenderingStats(RenderingStats* stats);
77 77
78 void PostTask(scoped_ptr<internal::WorkerPoolTask> task); 78 void PostTask(scoped_ptr<internal::WorkerPoolTask> task);
79 79
80 // Appends all completed tasks to worker pool's completed tasks queue 80 // Appends all completed tasks to worker pool's completed tasks queue
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 TRACE_EVENT_INSTANT0("cc", "WorkerPool::RunCheapTasks check time"); 600 TRACE_EVENT_INSTANT0("cc", "WorkerPool::RunCheapTasks check time");
601 CancelCheckForCompletedTasks(); 601 CancelCheckForCompletedTasks();
602 DispatchCompletionCallbacks(); 602 DispatchCompletionCallbacks();
603 // Schedule another check for completed tasks if not idle. 603 // Schedule another check for completed tasks if not idle.
604 if (!is_idle) 604 if (!is_idle)
605 ScheduleCheckForCompletedTasks(); 605 ScheduleCheckForCompletedTasks();
606 } 606 }
607 } 607 }
608 608
609 } // namespace cc 609 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.cc ('k') | chrome/browser/autofill/autofill_external_delegate_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698