OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_ | |
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_ | |
7 | |
8 namespace gfx { | |
9 struct GpuMemoryBufferHandle; | |
10 } | |
11 | |
12 namespace content { | |
13 | |
14 class GpuMemoryBufferFactoryHost { | |
reveman
2014/06/09 14:35:21
We'll need static Set/GetInstance functions for Gp
| |
15 public: | |
16 typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)> | |
17 CreateGpuMemoryBufferCallback; | |
18 | |
19 virtual void CreateGpuMemoryBuffer( | |
20 const gfx::GpuMemoryBufferHandle& handle, | |
21 size_t width, | |
22 size_t height, | |
23 unsigned internalformat, | |
24 unsigned usage, | |
25 const CreateGpuMemoryBufferCallback& callback) = 0; | |
26 virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, | |
27 int32 sync_point) = 0; | |
28 | |
29 protected: | |
30 virtual ~GpuMemoryBufferFactoryHost() {} | |
31 }; | |
32 | |
33 } // namespace content | |
34 | |
35 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_ | |
OLD | NEW |