Chromium Code Reviews| 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 <GLES2/gl2.h> | |
| 9 | |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "gles2_impl_export.h" | |
| 12 | |
| 13 namespace gpu { | |
| 14 class GpuMemoryBuffer; | |
| 15 | |
| 16 namespace gles2 { | |
| 17 | |
| 18 class GLES2_IMPL_EXPORT ImageFactory { | |
| 19 public: | |
| 20 virtual ~ImageFactory() {} | |
| 21 // Create a GpuMemoryBuffer and makes it available to the | |
| 22 // service side by inserting it to the ImageManager. | |
| 23 virtual scoped_ptr<GpuMemoryBuffer> CreateGpuMemoryBuffer( | |
| 24 int width, int height, GLenum internalformat, unsigned int* image_id) = 0; | |
|
reveman
2013/05/14 01:21:04
nit: s/unsigned int/unsigned/
kaanb
2013/05/14 18:12:11
Done.
| |
| 25 virtual void DeleteGpuMemoryBuffer(unsigned int image_id) = 0; | |
|
reveman
2013/05/14 01:21:04
nit: s/unsigned int/unsigned/
kaanb
2013/05/14 18:12:11
Done.
| |
| 26 }; | |
| 27 | |
| 28 } // namespace gles2 | |
| 29 } // namespace gpu | |
| 30 | |
| 31 #endif // GPU_COMMAND_BUFFER_CLIENT_IMAGE_FACTORY_H_ | |
| OLD | NEW |