summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gl
diff options
context:
space:
mode:
authormmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-14 20:35:51 +0000
committermmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-14 20:35:51 +0000
commit8cc980c55238ee905bededbfa1397cc09efd5bb0 (patch)
treebd60a3c3136a104751fa7f73d35ea60494a8d965 /ui/gfx/gl
parentfeed1d1a4f07a77f8db0b04e96fdb605574bb688 (diff)
downloadchromium_src-8cc980c55238ee905bededbfa1397cc09efd5bb0.zip
chromium_src-8cc980c55238ee905bededbfa1397cc09efd5bb0.tar.gz
chromium_src-8cc980c55238ee905bededbfa1397cc09efd5bb0.tar.bz2
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
Diffstat (limited to 'ui/gfx/gl')
-rw-r--r--ui/gfx/gl/gl_surface.cc3
-rw-r--r--ui/gfx/gl/gl_surface.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/ui/gfx/gl/gl_surface.cc b/ui/gfx/gl/gl_surface.cc
index a0e881d..a47ab98 100644
--- a/ui/gfx/gl/gl_surface.cc
+++ b/ui/gfx/gl/gl_surface.cc
@@ -31,6 +31,9 @@ unsigned int GLSurface::GetBackingFrameBufferObject() {
void GLSurface::OnMakeCurrent(GLContext* context) {
}
+void GLSurface::SetVisible(bool visible) {
+}
+
GLSurface* GLSurface::GetCurrent() {
return current_surface_.Get();
}
diff --git a/ui/gfx/gl/gl_surface.h b/ui/gfx/gl/gl_surface.h
index a9117df..a1f4584 100644
--- a/ui/gfx/gl/gl_surface.h
+++ b/ui/gfx/gl/gl_surface.h
@@ -53,6 +53,8 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// Called after a context is made current with this surface.
virtual void OnMakeCurrent(GLContext* context);
+ virtual void SetVisible(bool visible);
+
// Create a GL surface that renders directly to a view.
static scoped_refptr<GLSurface> CreateViewGLSurface(
bool software,