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