Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: android_webview/browser/aw_gl_surface.h

Issue 22277004: Add gfx::SurfaceFactoryWebview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to GLFactoryAndroid Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 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.
4
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_
7
8 #include "ui/gl/gl_surface.h"
9
10 namespace android_webview {
11
12 // This surface is used to represent the underlying surface provided by the App
13 // inside a hardware draw. Note that offscreen contexts will not be using this
14 // GLSurface.
15 class GL_EXPORT AwGLSurface : public gfx::GLSurface {
16 public:
17 AwGLSurface();
18
19 // Implement GLSurface.
20 virtual void Destroy() OVERRIDE;
21 virtual bool IsOffscreen() OVERRIDE;
22 virtual unsigned int GetBackingFrameBufferObject() OVERRIDE;
23 virtual bool SwapBuffers() OVERRIDE;
24 virtual gfx::Size GetSize() OVERRIDE;
25 virtual void* GetHandle() OVERRIDE;
26 virtual void* GetDisplay() OVERRIDE;
27
28 void SetBackingFrameBufferObject(unsigned int fbo);
29 void ResetBackingFrameBufferObject();
30
31 protected:
32 virtual ~AwGLSurface();
33
34 unsigned int fbo_;
piman 2013/08/06 21:41:55 nit: DISALLOW_COPY_AND_ASSIGN
35 };
36
37 } // namespace android_webview
38
39 #endif // ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698