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

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

Issue 1753383003: Get rid of gpu related switches by passing gpu::GpuPreferences via IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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/in_process_gpu_thread.h ('k') | content/public/browser/gpu_utils.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/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
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
OLDNEW
« no previous file with comments | « content/gpu/in_process_gpu_thread.h ('k') | content/public/browser/gpu_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698