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

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

Issue 10388131: Allow GLES2CmdDecoder to change the GLSurface associated with the default FBO. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « gpu/command_buffer/service/gl_surface_mock.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.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_decoder.h
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder.h (revision 137438)
+++ gpu/command_buffer/service/gles2_cmd_decoder.h (working copy)
@@ -105,8 +105,11 @@
const std::vector<int32>& attribs) = 0;
// Destroys the graphics context.
- virtual void Destroy() = 0;
+ virtual void Destroy(bool have_context) = 0;
+ // Set the surface associated with the default FBO.
+ virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0;
+
virtual bool SetParent(GLES2Decoder* parent_decoder,
uint32 parent_texture_id) = 0;
@@ -122,9 +125,6 @@
// Gets the GLES2 Util which holds info.
virtual GLES2Util* GetGLES2Util() = 0;
- // Gets the associated GLSurface.
- virtual gfx::GLSurface* GetGLSurface() = 0;
-
// Gets the associated GLContext.
virtual gfx::GLContext* GetGLContext() = 0;
« no previous file with comments | « gpu/command_buffer/service/gl_surface_mock.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698