OLD | NEW |
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 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 gpu_memory_buffer_factory = gpu::GpuMemoryBufferFactory::CreateNativeType(); | 276 gpu_memory_buffer_factory = gpu::GpuMemoryBufferFactory::CreateNativeType(); |
277 | 277 |
278 base::ThreadPriority io_thread_priority = base::ThreadPriority::NORMAL; | 278 base::ThreadPriority io_thread_priority = base::ThreadPriority::NORMAL; |
279 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) | 279 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) |
280 io_thread_priority = base::ThreadPriority::DISPLAY; | 280 io_thread_priority = base::ThreadPriority::DISPLAY; |
281 #endif | 281 #endif |
282 | 282 |
283 GpuProcess gpu_process(io_thread_priority); | 283 GpuProcess gpu_process(io_thread_priority); |
284 GpuChildThread* child_thread = new GpuChildThread( | 284 GpuChildThread* child_thread = new GpuChildThread( |
285 gpu_init.TakeWatchdogThread(), dead_on_arrival, gpu_init.gpu_info(), | 285 gpu_init.TakeWatchdogThread(), dead_on_arrival, gpu_init.gpu_info(), |
286 deferred_messages.Get(), gpu_memory_buffer_factory.get()); | 286 gpu_init.gpu_feature_info(), deferred_messages.Get(), |
| 287 gpu_memory_buffer_factory.get()); |
287 while (!deferred_messages.Get().empty()) | 288 while (!deferred_messages.Get().empty()) |
288 deferred_messages.Get().pop(); | 289 deferred_messages.Get().pop(); |
289 | 290 |
290 child_thread->Init(start_time); | 291 child_thread->Init(start_time); |
291 | 292 |
292 gpu_process.set_main_thread(child_thread); | 293 gpu_process.set_main_thread(child_thread); |
293 | 294 |
294 if (child_thread->watchdog_thread()) | 295 if (child_thread->watchdog_thread()) |
295 child_thread->watchdog_thread()->AddPowerObserver(); | 296 child_thread->watchdog_thread()->AddPowerObserver(); |
296 | 297 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 return true; | 359 return true; |
359 } | 360 } |
360 | 361 |
361 return false; | 362 return false; |
362 } | 363 } |
363 #endif // defined(OS_WIN) | 364 #endif // defined(OS_WIN) |
364 | 365 |
365 } // namespace. | 366 } // namespace. |
366 | 367 |
367 } // namespace content | 368 } // namespace content |
OLD | NEW |