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

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

Issue 9958034: Convert plugin and GPU process to brokered handle duplication. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
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_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void CreateViewCommandBufferOnIO( 58 void CreateViewCommandBufferOnIO(
59 CreateRequest* request, 59 CreateRequest* request,
60 int32 surface_id, 60 int32 surface_id,
61 const GPUCreateCommandBufferConfig& init_params); 61 const GPUCreateCommandBufferConfig& init_params);
62 static void CommandBufferCreatedOnIO(CreateRequest* request, int32 route_id); 62 static void CommandBufferCreatedOnIO(CreateRequest* request, int32 route_id);
63 void EstablishGpuChannelOnIO(EstablishRequest* request, 63 void EstablishGpuChannelOnIO(EstablishRequest* request,
64 CauseForGpuLaunch cause_for_gpu_launch); 64 CauseForGpuLaunch cause_for_gpu_launch);
65 static void GpuChannelEstablishedOnIO( 65 static void GpuChannelEstablishedOnIO(
66 EstablishRequest* request, 66 EstablishRequest* request,
67 const IPC::ChannelHandle& channel_handle, 67 const IPC::ChannelHandle& channel_handle,
68 base::ProcessHandle gpu_process_handle,
69 const GPUInfo& gpu_info); 68 const GPUInfo& gpu_info);
70 69
71 int gpu_client_id_; 70 int gpu_client_id_;
72 scoped_ptr<base::WaitableEvent> shutdown_event_; 71 scoped_ptr<base::WaitableEvent> shutdown_event_;
73 scoped_refptr<GpuChannelHost> gpu_channel_; 72 scoped_refptr<GpuChannelHost> gpu_channel_;
74 int gpu_host_id_; 73 int gpu_host_id_;
75 74
76 static BrowserGpuChannelHostFactory* instance_; 75 static BrowserGpuChannelHostFactory* instance_;
77 76
78 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); 77 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory);
79 }; 78 };
80 79
81 } // namespace content 80 } // namespace content
82 81
83 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 82 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698