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

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

Issue 2375743002: [Merge M54] aw: Fix FBO restore in webview functor (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | android_webview/browser/aw_gl_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gl/gl_surface.h" 9 #include "ui/gl/gl_surface.h"
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 // This surface is used to represent the underlying surface provided by the App 13 // This surface is used to represent the underlying surface provided by the App
14 // inside a hardware draw. Note that offscreen contexts will not be using this 14 // inside a hardware draw. Note that offscreen contexts will not be using this
15 // GLSurface. 15 // GLSurface.
16 class AwGLSurface : public gl::GLSurface { 16 class AwGLSurface : public gl::GLSurface {
17 public: 17 public:
18 AwGLSurface(); 18 AwGLSurface();
19 19
20 // Implement GLSurface. 20 // Implement GLSurface.
21 void Destroy() override; 21 void Destroy() override;
22 bool IsOffscreen() override; 22 bool IsOffscreen() override;
23 unsigned int GetBackingFramebufferObject() override; 23 unsigned int GetBackingFramebufferObject() override;
24 gfx::SwapResult SwapBuffers() override; 24 gfx::SwapResult SwapBuffers() override;
25 gfx::Size GetSize() override; 25 gfx::Size GetSize() override;
26 void* GetHandle() override; 26 void* GetHandle() override;
27 void* GetDisplay() override; 27 void* GetDisplay() override;
28 28
29 void SetBackingFrameBufferObject(unsigned int fbo);
30
31 protected: 29 protected:
32 ~AwGLSurface() override; 30 ~AwGLSurface() override;
33 31
34 private: 32 private:
35 unsigned int fbo_;
36
37 DISALLOW_COPY_AND_ASSIGN(AwGLSurface); 33 DISALLOW_COPY_AND_ASSIGN(AwGLSurface);
38 }; 34 };
39 35
40 } // namespace android_webview 36 } // namespace android_webview
41 37
42 #endif // ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ 38 #endif // ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698