summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_surface_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gl/gl_surface_stub.cc')
-rw-r--r--ui/gl/gl_surface_stub.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/ui/gl/gl_surface_stub.cc b/ui/gl/gl_surface_stub.cc
new file mode 100644
index 0000000..a27d2af
--- /dev/null
+++ b/ui/gl/gl_surface_stub.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/gl/gl_surface_stub.h"
+
+namespace gfx {
+
+void GLSurfaceStub::Destroy() {
+}
+
+bool GLSurfaceStub::IsOffscreen() {
+ return false;
+}
+
+bool GLSurfaceStub::SwapBuffers() {
+ return true;
+}
+
+gfx::Size GLSurfaceStub::GetSize() {
+ return size_;
+}
+
+void* GLSurfaceStub::GetHandle() {
+ return NULL;
+}
+
+GLSurfaceStub::~GLSurfaceStub() {}
+
+} // namespace gfx