Expose UpdateOffscreenFrameBufferSize from GLES2Decoder to allow Mac
port to call it during resizing. Because the Mac port does all of its
rendering offscreen, the back buffer must be resized immediately
rather than waiting until the next SwapBuffers call.
Tested with npapi_pepper_test_plugin and GPU unit tests.
BUG=45246
TEST=none
Review URL: http://codereview.chromium.org/2466003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48789 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index c081fa2..588be6e 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -532,6 +532,7 @@
uint32 parent_client_texture_id);
virtual void Destroy();
virtual void ResizeOffscreenFrameBuffer(const gfx::Size& size);
+ virtual bool UpdateOffscreenFrameBufferSize();
virtual bool MakeCurrent();
virtual GLES2Util* GetGLES2Util() { return &util_; }
virtual gfx::GLContext* GetGLContext() { return context_; }
@@ -597,8 +598,6 @@
return group_->texture_manager();
}
- bool UpdateOffscreenFrameBufferSize();
-
// Creates a TextureInfo for the given texture.
TextureManager::TextureInfo* CreateTextureInfo(
GLuint client_id, GLuint service_id) {