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

Side by Side Diff: content/gpu/gpu_process_control_impl.h

Issue 1899363002: Finish plumbing MojoVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ 5 #ifndef CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_
6 #define CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ 6 #define CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/single_thread_task_runner.h"
xhwang 2016/04/20 21:09:27 This can be forward declared
sandersd (OOO until July 31) 2016/05/03 00:54:36 I have removed these changes from the CL.
9 #include "content/child/process_control_impl.h" 11 #include "content/child/process_control_impl.h"
10 12
11 namespace content { 13 namespace content {
12 14
13 // Customization of ProcessControlImpl for the GPU process. 15 // Customization of ProcessControlImpl for the GPU process.
14 class GpuProcessControlImpl : public ProcessControlImpl { 16 class GpuProcessControlImpl : public ProcessControlImpl {
15 public: 17 public:
16 GpuProcessControlImpl(); 18 GpuProcessControlImpl(
19 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner);
xhwang 2016/04/20 21:09:27 gpu_main_task_runner just to be more explicit?
17 ~GpuProcessControlImpl() override; 20 ~GpuProcessControlImpl() override;
18 21
19 // ProcessControlImpl: 22 // ProcessControlImpl:
20 void RegisterApplicationFactories(ApplicationFactoryMap* factories) override; 23 void RegisterApplicationFactories(ApplicationFactoryMap* factories) override;
21 24
22 private: 25 private:
26 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_;
27
23 DISALLOW_COPY_AND_ASSIGN(GpuProcessControlImpl); 28 DISALLOW_COPY_AND_ASSIGN(GpuProcessControlImpl);
24 }; 29 };
25 30
26 } // namespace content 31 } // namespace content
27 32
28 #endif // CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ 33 #endif // CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698