diff options
Diffstat (limited to 'content/common/gpu/client/gpu_channel_host.cc')
-rw-r--r-- | content/common/gpu/client/gpu_channel_host.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc index 72f80f1..705f4b9d 100644 --- a/content/common/gpu/client/gpu_channel_host.cc +++ b/content/common/gpu/client/gpu_channel_host.cc @@ -35,11 +35,12 @@ GpuListenerInfo::~GpuListenerInfo() {} // static scoped_refptr<GpuChannelHost> GpuChannelHost::Create( GpuChannelHostFactory* factory, + int gpu_host_id, const gpu::GPUInfo& gpu_info, const IPC::ChannelHandle& channel_handle) { DCHECK(factory->IsMainThread()); scoped_refptr<GpuChannelHost> host = new GpuChannelHost( - factory, gpu_info); + factory, gpu_host_id, gpu_info); host->Connect(channel_handle); return host; } @@ -59,8 +60,10 @@ bool GpuChannelHost::IsValidGpuMemoryBuffer( } GpuChannelHost::GpuChannelHost(GpuChannelHostFactory* factory, + int gpu_host_id, const gpu::GPUInfo& gpu_info) : factory_(factory), + gpu_host_id_(gpu_host_id), gpu_info_(gpu_info) { next_transfer_buffer_id_.GetNext(); next_gpu_memory_buffer_id_.GetNext(); |