From 8cc980c55238ee905bededbfa1397cc09efd5bb0 Mon Sep 17 00:00:00 2001 From: "mmocny@chromium.org" Date: Fri, 14 Oct 2011 20:35:51 +0000 Subject: Adding gl command to change surface visibility, so that the gpu process can appropriately release/reacquire resources. BUG=5175544 TEST=None Review URL: http://codereview.chromium.org/7890046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105563 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/gpu/webgraphicscontext3d_in_process_impl.cc | 3 +++ webkit/gpu/webgraphicscontext3d_in_process_impl.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'webkit') diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc index c56e222..5485a73 100644 --- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc +++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc @@ -594,6 +594,9 @@ void WebGraphicsContext3DInProcessImpl::ClearRenderTarget() { glDisable(GL_DITHER); } +void WebGraphicsContext3DInProcessImpl::setVisibility(bool visible) { +} + #ifdef FLIP_FRAMEBUFFER_VERTICALLY void WebGraphicsContext3DInProcessImpl::FlipVertically( unsigned char* framebuffer, unsigned int width, unsigned int height) { diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_impl.h index 1bc447f..86cbcc6 100644 --- a/webkit/gpu/webgraphicscontext3d_in_process_impl.h +++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.h @@ -72,6 +72,8 @@ class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D { virtual void reshape(int width, int height); + virtual void setVisibility(bool visible); + virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize); virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, WebGLId framebuffer, int width, int height); -- cgit v1.1