blob: 5ff927284ddeae906eb2eec6f5c329c232657298 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// Copyright 2013 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 "android_webview/browser/aw_gl_surface.h"
namespace android_webview {
AwGLSurface::AwGLSurface() : fbo_(0) {}
AwGLSurface::~AwGLSurface() {}
void AwGLSurface::Destroy() {
}
bool AwGLSurface::IsOffscreen() {
return false;
}
unsigned int AwGLSurface::GetBackingFrameBufferObject() {
return fbo_;
}
bool AwGLSurface::SwapBuffers() {
return true;
}
gfx::Size AwGLSurface::GetSize() {
return gfx::Size(1, 1);
}
void* AwGLSurface::GetHandle() {
return NULL;
}
void* AwGLSurface::GetDisplay() {
return NULL;
}
void AwGLSurface::SetBackingFrameBufferObject(unsigned int fbo) {
fbo_ = fbo;
}
void AwGLSurface::ResetBackingFrameBufferObject() {
fbo_ = 0;
}
} // namespace android_webview
|