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

Side by Side Diff: cc/raster_worker_pool.h

Issue 11880014: cc: Set ui/gpu/cc/ipc/upload/raster thread priorities. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address feedback (use static). Created 7 years, 11 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 | « base/threading/platform_thread_posix.cc ('k') | cc/raster_worker_pool.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CC_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RASTER_WORKER_POOL_H_
6 #define CC_RASTER_WORKER_POOL_H_ 6 #define CC_RASTER_WORKER_POOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 private: 52 private:
53 friend class RasterWorkerPool; 53 friend class RasterWorkerPool;
54 54
55 Thread* thread_; 55 Thread* thread_;
56 RenderingStats rendering_stats_; 56 RenderingStats rendering_stats_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(Task); 58 DISALLOW_COPY_AND_ASSIGN(Task);
59 }; 59 };
60 60
61 virtual void Init() OVERRIDE;
62
61 Thread(const std::string name); 63 Thread(const std::string name);
62 virtual ~Thread(); 64 virtual ~Thread();
63 65
64 int num_pending_tasks() const { return num_pending_tasks_; } 66 int num_pending_tasks() const { return num_pending_tasks_; }
65 RenderingStats& rendering_stats() { return rendering_stats_; } 67 RenderingStats& rendering_stats() { return rendering_stats_; }
66 68
67 private: 69 private:
68 int num_pending_tasks_; 70 int num_pending_tasks_;
69 RenderingStats rendering_stats_; 71 RenderingStats rendering_stats_;
70 72
(...skipping 18 matching lines...) Expand all
89 91
90 typedef std::vector<Thread*> ThreadVector; 92 typedef std::vector<Thread*> ThreadVector;
91 ThreadVector raster_threads_; 93 ThreadVector raster_threads_;
92 94
93 DISALLOW_COPY_AND_ASSIGN(RasterWorkerPool); 95 DISALLOW_COPY_AND_ASSIGN(RasterWorkerPool);
94 }; 96 };
95 97
96 } // namespace cc 98 } // namespace cc
97 99
98 #endif // CC_RASTER_WORKER_POOL_H_ 100 #endif // CC_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « base/threading/platform_thread_posix.cc ('k') | cc/raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698