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

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

Issue 1221473003: content: Fix single process support for native GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/gpu/in_process_gpu_thread.cc » ('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 #ifndef CONTENT_GPU_IN_PROCESS_GPU_THREAD_H_ 5 #ifndef CONTENT_GPU_IN_PROCESS_GPU_THREAD_H_
6 #define CONTENT_GPU_IN_PROCESS_GPU_THREAD_H_ 6 #define CONTENT_GPU_IN_PROCESS_GPU_THREAD_H_
7 7
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/content_export.h"
11 #include "content/common/in_process_child_thread_params.h" 10 #include "content/common/in_process_child_thread_params.h"
12 11
13 namespace content { 12 namespace content {
14 13
14 class GpuMemoryBufferFactory;
15 class GpuProcess; 15 class GpuProcess;
16 16
17 // This class creates a GPU thread (instead of a GPU process), when running 17 // This class creates a GPU thread (instead of a GPU process), when running
18 // with --in-process-gpu or --single-process. 18 // with --in-process-gpu or --single-process.
19 class InProcessGpuThread : public base::Thread { 19 class InProcessGpuThread : public base::Thread {
20 public: 20 public:
21 InProcessGpuThread(const InProcessChildThreadParams& params); 21 InProcessGpuThread(const InProcessChildThreadParams& params);
22 ~InProcessGpuThread() override; 22 ~InProcessGpuThread() override;
23 23
24 protected: 24 protected:
25 void Init() override; 25 void Init() override;
26 void CleanUp() override; 26 void CleanUp() override;
27 27
28 private: 28 private:
29 InProcessChildThreadParams params_; 29 InProcessChildThreadParams params_;
30 30
31 // Deleted in CleanUp() on the gpu thread, so don't use smart pointers. 31 // Deleted in CleanUp() on the gpu thread, so don't use smart pointers.
32 GpuProcess* gpu_process_; 32 GpuProcess* gpu_process_;
33 33
34 scoped_ptr<GpuMemoryBufferFactory> gpu_memory_buffer_factory_;
35
34 DISALLOW_COPY_AND_ASSIGN(InProcessGpuThread); 36 DISALLOW_COPY_AND_ASSIGN(InProcessGpuThread);
35 }; 37 };
36 38
37 CONTENT_EXPORT base::Thread* CreateInProcessGpuThread( 39 CONTENT_EXPORT base::Thread* CreateInProcessGpuThread(
38 const InProcessChildThreadParams& params); 40 const InProcessChildThreadParams& params);
39 41
40 } // namespace content 42 } // namespace content
41 43
42 #endif // CONTENT_GPU_IN_PROCESS_GPU_THREAD_H_ 44 #endif // CONTENT_GPU_IN_PROCESS_GPU_THREAD_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/gpu/in_process_gpu_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698