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

Side by Side Diff: content/child/child_thread_impl.h

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: revert to CHECK_NE Created 4 years, 3 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 | « content/child/child_process.cc ('k') | content/child/child_thread_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_
6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // A static variant that can be called on background threads provided 122 // A static variant that can be called on background threads provided
123 // the |sender| passed in is safe to use on background threads. 123 // the |sender| passed in is safe to use on background threads.
124 // |out_of_memory| is an output variable populated on failure which tells the 124 // |out_of_memory| is an output variable populated on failure which tells the
125 // caller whether the failure was caused by an out of memory error. 125 // caller whether the failure was caused by an out of memory error.
126 static std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 126 static std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
127 size_t buf_size, 127 size_t buf_size,
128 IPC::Sender* sender, 128 IPC::Sender* sender,
129 bool* out_of_memory); 129 bool* out_of_memory);
130 130
131 #if defined(OS_LINUX)
132 void SetThreadPriority(base::PlatformThreadId id,
133 base::ThreadPriority priority);
134 #endif
135
131 ChildSharedBitmapManager* shared_bitmap_manager() const { 136 ChildSharedBitmapManager* shared_bitmap_manager() const {
132 return shared_bitmap_manager_.get(); 137 return shared_bitmap_manager_.get();
133 } 138 }
134 139
135 ChildGpuMemoryBufferManager* gpu_memory_buffer_manager() const { 140 ChildGpuMemoryBufferManager* gpu_memory_buffer_manager() const {
136 return gpu_memory_buffer_manager_.get(); 141 return gpu_memory_buffer_manager_.get();
137 } 142 }
138 143
139 ChildDiscardableSharedMemoryManager* discardable_shared_memory_manager() 144 ChildDiscardableSharedMemoryManager* discardable_shared_memory_manager()
140 const { 145 const {
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 370
366 private: 371 private:
367 struct Options options_; 372 struct Options options_;
368 373
369 DISALLOW_COPY_AND_ASSIGN(Builder); 374 DISALLOW_COPY_AND_ASSIGN(Builder);
370 }; 375 };
371 376
372 } // namespace content 377 } // namespace content
373 378
374 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 379 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/child_process.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698