[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / ui / gl / gl_surface_stub.cc
blobc49165fee1e5ee857821e4551a8b2764168c1831
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/gl/gl_surface_stub.h"
7 namespace gfx {
9 void GLSurfaceStub::Destroy() {
12 bool GLSurfaceStub::IsOffscreen() {
13 return false;
16 gfx::SwapResult GLSurfaceStub::SwapBuffers() {
17 return gfx::SwapResult::SWAP_ACK;
20 gfx::Size GLSurfaceStub::GetSize() {
21 return size_;
24 void* GLSurfaceStub::GetHandle() {
25 return NULL;
28 GLSurfaceStub::~GLSurfaceStub() {}
30 } // namespace gfx