OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 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_GPU_MEMORY_BUFFER_FACTORY_H_ | |
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_H_ | |
7 | |
8 #include "ui/gfx/geometry/size.h" | |
9 #include "ui/gfx/gpu_memory_buffer.h" | |
10 | |
11 namespace content { | |
12 | |
13 class GpuMemoryBufferFactory { | |
14 public: | |
15 static void Initialize(); | |
alexst (slow to review)
2014/06/18 22:54:49
What if we made this static GpuMemoryBufferFactory
reveman
2014/06/19 14:56:12
Not a fan of the idea of another struct with ifdef
| |
16 static bool CreateGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, | |
17 const gfx::Size& size, | |
18 unsigned internalformat, | |
19 unsigned usage); | |
20 static void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle); | |
21 static bool RequestAccessToGpuMemoryBuffer( | |
22 const gfx::GpuMemoryBufferHandle& handle, | |
23 int client_id); | |
24 | |
25 protected: | |
26 virtual ~GpuMemoryBufferFactory() {} | |
27 }; | |
28 | |
29 } // namespace content | |
30 | |
31 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_H_ | |
OLD | NEW |