| Index: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h
|
| index 933bf6592c44305db8d4fdbf5961124e34194c56..39f63b4a31522b7732e8a112696b7eabd2ef4d87 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h
|
| +++ b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h
|
| @@ -7,6 +7,13 @@
|
|
|
| #include "gpu/command_buffer/service/gl_utils.h"
|
|
|
| +namespace gpu {
|
| +namespace gles2 {
|
| +
|
| +class GLES2Decoder;
|
| +
|
| +} // namespace gles2.
|
| +
|
| // This class encapsulates the resources required to implement the
|
| // GL_CHROMIUM_copy_texture extension. The copy operation is performed
|
| // via a blit to a framebuffer object.
|
| @@ -17,8 +24,10 @@ class CopyTextureCHROMIUMResourceManager {
|
| void Initialize();
|
| void Destroy();
|
|
|
| - void DoCopyTexture(GLenum target, GLuint source_id, GLuint dest_id,
|
| - GLint level, bool flip_y, bool premultiply_alpha,
|
| + void DoCopyTexture(const gles2::GLES2Decoder* decoder, GLenum source_target,
|
| + GLenum dest_target, GLuint source_id, GLuint dest_id,
|
| + GLint level, GLsizei width, GLsizei height,
|
| + bool flip_y, bool premultiply_alpha,
|
| bool unpremultiply_alpha);
|
|
|
| // The attributes used during invocation of the extension.
|
| @@ -28,7 +37,7 @@ class CopyTextureCHROMIUMResourceManager {
|
| private:
|
| bool initialized_;
|
|
|
| - static const int kNumPrograms = 6;
|
| + static const int kNumPrograms = 12;
|
| GLuint programs_[kNumPrograms];
|
| GLuint buffer_ids_[2];
|
| GLuint framebuffer_;
|
| @@ -37,6 +46,8 @@ class CopyTextureCHROMIUMResourceManager {
|
| DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager);
|
| };
|
|
|
| +} // namespace gpu.
|
| +
|
| #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
|
|
|
|
|
|
|