summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 22:30:01 +0000
committerbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 22:30:01 +0000
commitb926026419473f373bde47f8337c5f7125f47d8c (patch)
tree54a12540d31ade8228a3fca9c0df00af8bf43e4d /ui
parent39bac0fec2a6ba305095ad8231665cfe1ea9a31f (diff)
downloadchromium_src-b926026419473f373bde47f8337c5f7125f47d8c.zip
chromium_src-b926026419473f373bde47f8337c5f7125f47d8c.tar.gz
chromium_src-b926026419473f373bde47f8337c5f7125f47d8c.tar.bz2
GPU: Remove some dead code.
Review URL: https://chromiumcodereview.appspot.com/12050004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178920 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gl/gl_surface.cc8
-rw-r--r--ui/gl/gl_surface.h6
2 files changed, 0 insertions, 14 deletions
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index 375f525..ce2cc65 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -88,10 +88,6 @@ bool GLSurface::DeferDraws() {
return false;
}
-bool GLSurface::DeferSwapBuffers() {
- return false;
-}
-
std::string GLSurface::GetExtensions() {
// Use of GLSurfaceAdapter class means that we can't compare
// GetCurrent() and this directly.
@@ -196,10 +192,6 @@ bool GLSurfaceAdapter::DeferDraws() {
return surface_->DeferDraws();
}
-bool GLSurfaceAdapter::DeferSwapBuffers() {
- return surface_->DeferSwapBuffers();
-}
-
bool GLSurfaceAdapter::IsOffscreen() {
return surface_->IsOffscreen();
}
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index 4b98046..bb094fd 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -44,11 +44,6 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// rescheduled.
virtual bool DeferDraws();
- // Unschedule the GpuScheduler and return true to abort the processing of
- // a GL SwapBuffers call to this surface and defer it until the GpuScheduler
- // is rescheduled.
- virtual bool DeferSwapBuffers();
-
// Returns true if this surface is offscreen.
virtual bool IsOffscreen() = 0;
@@ -143,7 +138,6 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
virtual void Destroy() OVERRIDE;
virtual bool Resize(const gfx::Size& size) OVERRIDE;
virtual bool DeferDraws() OVERRIDE;
- virtual bool DeferSwapBuffers() OVERRIDE;
virtual bool IsOffscreen() OVERRIDE;
virtual bool SwapBuffers() OVERRIDE;
virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;