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

Side by Side Diff: content/gpu/in_process_gpu_thread.cc

Issue 2322893002: gpu: Remove unused GpuChildThread::gpu_preferences_. (Closed)
Patch Set: . 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/gpu/gpu_child_thread.cc ('k') | gpu/ipc/service/gpu_channel_manager.h » ('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 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/gpu/gpu_child_thread.h" 9 #include "content/gpu/gpu_child_thread.h"
10 #include "content/gpu/gpu_process.h" 10 #include "content/gpu/gpu_process.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // will not change the thread name kept in Java VM. 43 // will not change the thread name kept in Java VM.
44 base::android::AttachCurrentThreadWithName(thread_name()); 44 base::android::AttachCurrentThreadWithName(thread_name());
45 // Up the priority of the |io_thread_| on Android. 45 // Up the priority of the |io_thread_| on Android.
46 io_thread_priority = base::ThreadPriority::DISPLAY; 46 io_thread_priority = base::ThreadPriority::DISPLAY;
47 #endif 47 #endif
48 48
49 gpu_process_ = new GpuProcess(io_thread_priority); 49 gpu_process_ = new GpuProcess(io_thread_priority);
50 50
51 // The process object takes ownership of the thread object, so do not 51 // The process object takes ownership of the thread object, so do not
52 // save and delete the pointer. 52 // save and delete the pointer.
53 GpuChildThread* child_thread = new GpuChildThread( 53 GpuChildThread* child_thread =
54 gpu_preferences_, params_, gpu_memory_buffer_factory_.get()); 54 new GpuChildThread(params_, gpu_memory_buffer_factory_.get());
55 55
56 // Since we are in the browser process, use the thread start time as the 56 // Since we are in the browser process, use the thread start time as the
57 // process start time. 57 // process start time.
58 child_thread->Init(base::Time::Now()); 58 child_thread->Init(base::Time::Now());
59 59
60 gpu_process_->set_main_thread(child_thread); 60 gpu_process_->set_main_thread(child_thread);
61 } 61 }
62 62
63 void InProcessGpuThread::CleanUp() { 63 void InProcessGpuThread::CleanUp() {
64 SetThreadWasQuitProperly(true); 64 SetThreadWasQuitProperly(true);
65 delete gpu_process_; 65 delete gpu_process_;
66 } 66 }
67 67
68 base::Thread* CreateInProcessGpuThread( 68 base::Thread* CreateInProcessGpuThread(
69 const InProcessChildThreadParams& params, 69 const InProcessChildThreadParams& params,
70 const gpu::GpuPreferences& gpu_preferences) { 70 const gpu::GpuPreferences& gpu_preferences) {
71 return new InProcessGpuThread(params, gpu_preferences); 71 return new InProcessGpuThread(params, gpu_preferences);
72 } 72 }
73 73
74 } // namespace content 74 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | gpu/ipc/service/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698