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

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

Issue 1187153003: Update content module for IPC attachment brokering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GPUChannelHostFactory also needs to virtually inherit from SupportsAttachmentBrokering. This patch … Created 5 years, 6 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 | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.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 (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 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 gfx::GpuMemoryBuffer::Usage usage); 33 gfx::GpuMemoryBuffer::Usage usage);
34 34
35 // Overridden from GpuChannelHostFactory: 35 // Overridden from GpuChannelHostFactory:
36 bool IsMainThread() override; 36 bool IsMainThread() override;
37 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; 37 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override;
38 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; 38 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override;
39 CreateCommandBufferResult CreateViewCommandBuffer( 39 CreateCommandBufferResult CreateViewCommandBuffer(
40 int32 surface_id, 40 int32 surface_id,
41 const GPUCreateCommandBufferConfig& init_params, 41 const GPUCreateCommandBufferConfig& init_params,
42 int32 route_id) override; 42 int32 route_id) override;
43 IPC::AttachmentBroker* GetAttachmentBroker() override;
43 44
44 // Overridden from GpuMemoryBufferFactoryHost: 45 // Overridden from GpuMemoryBufferFactoryHost:
45 bool IsGpuMemoryBufferConfigurationSupported( 46 bool IsGpuMemoryBufferConfigurationSupported(
46 gfx::GpuMemoryBuffer::Format format, 47 gfx::GpuMemoryBuffer::Format format,
47 gfx::GpuMemoryBuffer::Usage usage) override; 48 gfx::GpuMemoryBuffer::Usage usage) override;
48 void CreateGpuMemoryBuffer( 49 void CreateGpuMemoryBuffer(
49 gfx::GpuMemoryBufferId id, 50 gfx::GpuMemoryBufferId id,
50 const gfx::Size& size, 51 const gfx::Size& size,
51 gfx::GpuMemoryBuffer::Format format, 52 gfx::GpuMemoryBuffer::Format format,
52 gfx::GpuMemoryBuffer::Usage usage, 53 gfx::GpuMemoryBuffer::Usage usage,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_; 106 CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_;
106 107
107 static BrowserGpuChannelHostFactory* instance_; 108 static BrowserGpuChannelHostFactory* instance_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); 110 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory);
110 }; 111 };
111 112
112 } // namespace content 113 } // namespace content
113 114
114 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 115 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698