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

Side by Side Diff: services/ui/gpu/gpu_service_mus.cc

Issue 2096843002: mus+ash: Enable Chrome HW rendering in mus+ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a compile error Created 4 years, 5 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/ui/gpu/gpu_service_mus.h" 5 #include "services/ui/gpu/gpu_service_mus.h"
6 6
7 #include "base/memory/shared_memory.h" 7 #include "base/memory/shared_memory.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 #if defined(OS_WIN) 145 #if defined(OS_WIN)
146 void GpuServiceMus::SendAcceleratedSurfaceCreatedChildWindow( 146 void GpuServiceMus::SendAcceleratedSurfaceCreatedChildWindow(
147 gpu::SurfaceHandle parent_window, 147 gpu::SurfaceHandle parent_window,
148 gpu::SurfaceHandle child_window) { 148 gpu::SurfaceHandle child_window) {
149 NOTIMPLEMENTED(); 149 NOTIMPLEMENTED();
150 } 150 }
151 #endif 151 #endif
152 152
153 void GpuServiceMus::SetActiveURL(const GURL& url) { 153 void GpuServiceMus::SetActiveURL(const GURL& url) {
154 NOTIMPLEMENTED(); 154 // Comment out the NOTIMPLEMENTED(). It is too verbose.
155 // NOTIMPLEMENTED();
piman 2016/07/07 21:02:21 nit: either remove the code (e.g. write a TODO) or
Peng 2016/07/07 21:33:37 Done.
155 } 156 }
156 157
157 void GpuServiceMus::Initialize() { 158 void GpuServiceMus::Initialize() {
158 DCHECK(CalledOnValidThread()); 159 DCHECK(CalledOnValidThread());
159 base::Thread::Options thread_options(base::MessageLoop::TYPE_DEFAULT, 0); 160 base::Thread::Options thread_options(base::MessageLoop::TYPE_DEFAULT, 0);
160 thread_options.priority = base::ThreadPriority::NORMAL; 161 thread_options.priority = base::ThreadPriority::NORMAL;
161 CHECK(gpu_thread_.StartWithOptions(thread_options)); 162 CHECK(gpu_thread_.StartWithOptions(thread_options));
162 163
163 thread_options = base::Thread::Options(base::MessageLoop::TYPE_IO, 0); 164 thread_options = base::Thread::Options(base::MessageLoop::TYPE_IO, 0);
164 thread_options.priority = base::ThreadPriority::NORMAL; 165 thread_options.priority = base::ThreadPriority::NORMAL;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 return shm; 265 return shm;
265 } 266 }
266 267
267 // static 268 // static
268 GpuServiceMus* GpuServiceMus::GetInstance() { 269 GpuServiceMus* GpuServiceMus::GetInstance() {
269 return base::Singleton<GpuServiceMus, 270 return base::Singleton<GpuServiceMus,
270 base::LeakySingletonTraits<GpuServiceMus>>::get(); 271 base::LeakySingletonTraits<GpuServiceMus>>::get();
271 } 272 }
272 273
273 } // namespace ui 274 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698