Use total page scale in the LayerScrollOffsetDelegate.
[chromium-blink-merge.git] / android_webview / browser / aw_gl_surface.cc
blob5ff927284ddeae906eb2eec6f5c329c232657298
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 bool AwGLSurface::SwapBuffers() {
25 return true;
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