Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h

Issue 12315051: Make CopyTextureCHROMIUM restore its own state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fc297dfc4d839a1e2b91a4afefd6d70adadb254f 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.
@@ -14,11 +21,13 @@ class CopyTextureCHROMIUMResourceManager {
public:
CopyTextureCHROMIUMResourceManager() : initialized_(false) {}
- void Initialize();
+ void Initialize(const gles2::GLES2Decoder* decoder);
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 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.
@@ -37,6 +46,8 @@ class CopyTextureCHROMIUMResourceManager {
DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager);
};
+} // namespace gpu.
+
#endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698