OLD | NEW |
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 "content/gpu/in_process_gpu_thread.h" | 5 #include "content/gpu/in_process_gpu_thread.h" |
6 | 6 |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/common/gpu/gpu_memory_buffer_factory.h" | 9 #include "content/common/gpu/gpu_memory_buffer_factory.h" |
10 #include "content/gpu/gpu_child_thread.h" | 10 #include "content/gpu/gpu_child_thread.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 gpu_process_->set_main_thread(child_thread); | 68 gpu_process_->set_main_thread(child_thread); |
69 } | 69 } |
70 | 70 |
71 void InProcessGpuThread::CleanUp() { | 71 void InProcessGpuThread::CleanUp() { |
72 SetThreadWasQuitProperly(true); | 72 SetThreadWasQuitProperly(true); |
73 delete gpu_process_; | 73 delete gpu_process_; |
74 } | 74 } |
75 | 75 |
76 base::Thread* CreateInProcessGpuThread( | 76 base::Thread* CreateInProcessGpuThread( |
77 const InProcessChildThreadParams& params) { | 77 const InProcessChildThreadParams& params, |
| 78 const gpu::GpuPreferences& gpu_preferences) { |
78 return new InProcessGpuThread( | 79 return new InProcessGpuThread( |
79 params, GpuChildThread::GetGpuPreferencesFromCommandLine(), nullptr); | 80 params, gpu_preferences, nullptr); |
80 } | 81 } |
81 | 82 |
82 } // namespace content | 83 } // namespace content |
OLD | NEW |