#ifndef ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_
#define ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_
#include "ui/gl/gl_surface.h"
namespace android_webview {
class GL_EXPORT AwGLSurface : public gfx::GLSurface {
public:
AwGLSurface();
virtual void Destroy() OVERRIDE;
virtual bool IsOffscreen() OVERRIDE;
virtual unsigned int GetBackingFrameBufferObject() OVERRIDE;
virtual bool SwapBuffers() OVERRIDE;
virtual gfx::Size GetSize() OVERRIDE;
virtual void* GetHandle() OVERRIDE;
virtual void* GetDisplay() OVERRIDE;
void SetBackingFrameBufferObject(unsigned int fbo);
void ResetBackingFrameBufferObject();
protected:
virtual ~AwGLSurface();
private:
unsigned int fbo_;
DISALLOW_COPY_AND_ASSIGN(AwGLSurface);
};
}
#endif