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

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

Issue 409723003: content: Add DeletedGpuMemoryBuffer IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused code Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.h » ('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 <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 20 matching lines...) Expand all
31 size_t size) OVERRIDE; 31 size_t size) OVERRIDE;
32 virtual CreateCommandBufferResult CreateViewCommandBuffer( 32 virtual CreateCommandBufferResult CreateViewCommandBuffer(
33 int32 surface_id, 33 int32 surface_id,
34 const GPUCreateCommandBufferConfig& init_params, 34 const GPUCreateCommandBufferConfig& init_params,
35 int32 route_id) OVERRIDE; 35 int32 route_id) OVERRIDE;
36 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 36 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
37 size_t width, 37 size_t width,
38 size_t height, 38 size_t height,
39 unsigned internalformat, 39 unsigned internalformat,
40 unsigned usage) OVERRIDE; 40 unsigned usage) OVERRIDE;
41 virtual void DeleteGpuMemoryBuffer(
42 scoped_ptr<gfx::GpuMemoryBuffer> buffer) OVERRIDE {}
41 43
42 // GpuMemoryBufferFactoryHost implementation. 44 // GpuMemoryBufferFactoryHost implementation.
43 virtual void CreateGpuMemoryBuffer( 45 virtual void CreateGpuMemoryBuffer(
44 const gfx::GpuMemoryBufferHandle& handle, 46 const gfx::GpuMemoryBufferHandle& handle,
45 const gfx::Size& size, 47 const gfx::Size& size,
46 unsigned internalformat, 48 unsigned internalformat,
47 unsigned usage, 49 unsigned usage,
48 const CreateGpuMemoryBufferCallback& callback) OVERRIDE; 50 const CreateGpuMemoryBufferCallback& callback) OVERRIDE;
49 virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, 51 virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
50 int32 sync_point) OVERRIDE; 52 int32 sync_point) OVERRIDE;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_; 114 CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_;
113 115
114 static BrowserGpuChannelHostFactory* instance_; 116 static BrowserGpuChannelHostFactory* instance_;
115 117
116 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); 118 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory);
117 }; 119 };
118 120
119 } // namespace content 121 } // namespace content
120 122
121 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 123 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698