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

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 1778693002: Revert of 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: 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_GPU_GPU_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 22 matching lines...) Expand all
33 #include "ui/gfx/native_widget_types.h" 33 #include "ui/gfx/native_widget_types.h"
34 #include "url/gurl.h" 34 #include "url/gurl.h"
35 35
36 struct GPUCreateCommandBufferConfig; 36 struct GPUCreateCommandBufferConfig;
37 37
38 namespace IPC { 38 namespace IPC {
39 struct ChannelHandle; 39 struct ChannelHandle;
40 } 40 }
41 41
42 namespace gpu { 42 namespace gpu {
43 struct GpuPreferences;
44 struct SyncToken; 43 struct SyncToken;
45 } 44 }
46 45
47 namespace content { 46 namespace content {
48 class BrowserChildProcessHostImpl; 47 class BrowserChildProcessHostImpl;
49 class GpuMainThread; 48 class GpuMainThread;
50 class InProcessChildThreadParams; 49 class InProcessChildThreadParams;
51 class MojoApplicationHost; 50 class MojoApplicationHost;
52 class RenderWidgetHostViewFrameSubscriber; 51 class RenderWidgetHostViewFrameSubscriber;
53 class ShaderDiskCache; 52 class ShaderDiskCache;
54 53
55 typedef base::Thread* (*GpuMainThreadFactoryFunction)( 54 typedef base::Thread* (*GpuMainThreadFactoryFunction)(
56 const InProcessChildThreadParams&, const gpu::GpuPreferences&); 55 const InProcessChildThreadParams&);
57 56
58 class GpuProcessHost : public BrowserChildProcessHostDelegate, 57 class GpuProcessHost : public BrowserChildProcessHostDelegate,
59 public IPC::Sender, 58 public IPC::Sender,
60 public base::NonThreadSafe { 59 public base::NonThreadSafe {
61 public: 60 public:
62 enum GpuProcessKind { 61 enum GpuProcessKind {
63 GPU_PROCESS_KIND_UNSANDBOXED, 62 GPU_PROCESS_KIND_UNSANDBOXED,
64 GPU_PROCESS_KIND_SANDBOXED, 63 GPU_PROCESS_KIND_SANDBOXED,
65 GPU_PROCESS_KIND_COUNT 64 GPU_PROCESS_KIND_COUNT
66 }; 65 };
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // Browser-side Mojo endpoint which sets up a Mojo channel with the child 291 // Browser-side Mojo endpoint which sets up a Mojo channel with the child
293 // process and contains the browser's ServiceRegistry. 292 // process and contains the browser's ServiceRegistry.
294 scoped_ptr<MojoApplicationHost> mojo_application_host_; 293 scoped_ptr<MojoApplicationHost> mojo_application_host_;
295 294
296 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 295 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
297 }; 296 };
298 297
299 } // namespace content 298 } // namespace content
300 299
301 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 300 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/android/synchronous_compositor_base.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698