OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 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 GPU_COMMAND_BUFFER_CLIENT_IMAGE_FACTORY_H_ | |
6 #define GPU_COMMAND_BUFFER_CLIENT_IMAGE_FACTORY_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "gles2_impl_export.h" | |
10 | |
11 namespace gpu { | |
12 class GpuMemoryBuffer; | |
13 | |
14 namespace gles2 { | |
15 | |
16 class GLES2_IMPL_EXPORT ImageFactory { | |
17 public: | |
18 virtual ~ImageFactory() {} | |
19 // Craete a GpuMemoryBuffer and makes it available to the | |
reveman
2013/05/10 02:06:16
nit: Create
kaanb
2013/05/13 23:00:36
Done.
| |
20 // service side by inserting it to the ImageManager. | |
21 virtual scoped_ptr<GpuMemoryBuffer> CreateGpuMemoryBuffer( | |
22 int width, int height, unsigned int* image_id) = 0; | |
23 virtual void RemoveFromManager(unsigned int image_id) = 0; | |
reveman
2013/05/10 02:06:16
I prefer DeleteGpuMemoryBuffer(unsigned image_id).
kaanb
2013/05/13 23:00:36
Done.
| |
24 }; | |
25 | |
26 } // namespace gles2 | |
27 } // namespace gpu | |
28 | |
29 #endif // GPU_COMMAND_BUFFER_CLIENT_IMAGE_FACTORY_H_ | |
OLD | NEW |