exclude PluginsFieldTrialTest.NoPrefLeftBehind from valgrind bot
[chromium-blink-merge.git] / android_webview / browser / aw_gl_surface.cc
bloba542275b34407ace1dc0073eccbb399c884ff9f2
1 // Copyright 2013 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 "android_webview/browser/aw_gl_surface.h"
7 namespace android_webview {
9 AwGLSurface::AwGLSurface() : fbo_(0) {}
11 AwGLSurface::~AwGLSurface() {}
13 void AwGLSurface::Destroy() {
16 bool AwGLSurface::IsOffscreen() {
17 return false;
20 unsigned int AwGLSurface::GetBackingFrameBufferObject() {
21 return fbo_;
24 gfx::SwapResult AwGLSurface::SwapBuffers() {
25 return gfx::SwapResult::SWAP_ACK;
28 gfx::Size AwGLSurface::GetSize() {
29 return gfx::Size(1, 1);
32 void* AwGLSurface::GetHandle() {
33 return NULL;
36 void* AwGLSurface::GetDisplay() {
37 return NULL;
40 void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) {
41 fbo_ = fbo;
44 void AwGLSurface::ResetBackingFrameBufferObject() {
45 fbo_ = 0;
48 } // namespace android_webview