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

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

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ozone demo Created 5 years, 6 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 "ui/gl/gl_surface.h" 8 #include "ui/gl/gl_surface.h"
9 9
10 namespace android_webview { 10 namespace android_webview {
11 11
12 // This surface is used to represent the underlying surface provided by the App 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 13 // inside a hardware draw. Note that offscreen contexts will not be using this
14 // GLSurface. 14 // GLSurface.
15 class GL_EXPORT AwGLSurface : public gfx::GLSurface { 15 class GL_EXPORT AwGLSurface : public gfx::GLSurface {
16 public: 16 public:
17 AwGLSurface(); 17 AwGLSurface();
18 18
19 // Implement GLSurface. 19 // Implement GLSurface.
20 void Destroy() override; 20 void Destroy() override;
21 bool IsOffscreen() override; 21 bool IsOffscreen() override;
22 unsigned int GetBackingFrameBufferObject() override; 22 unsigned int GetBackingFrameBufferObject() override;
23 bool SwapBuffers() override; 23 gfx::SwapResult SwapBuffers() override;
24 gfx::Size GetSize() override; 24 gfx::Size GetSize() override;
25 void* GetHandle() override; 25 void* GetHandle() override;
26 void* GetDisplay() override; 26 void* GetDisplay() override;
27 27
28 void SetBackingFrameBufferObject(unsigned int fbo); 28 void SetBackingFrameBufferObject(unsigned int fbo);
29 void ResetBackingFrameBufferObject(); 29 void ResetBackingFrameBufferObject();
30 30
31 protected: 31 protected:
32 ~AwGLSurface() override; 32 ~AwGLSurface() override;
33 33
34 private: 34 private:
35 unsigned int fbo_; 35 unsigned int fbo_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(AwGLSurface); 37 DISALLOW_COPY_AND_ASSIGN(AwGLSurface);
38 }; 38 };
39 39
40 } // namespace android_webview 40 } // namespace android_webview
41 41
42 #endif // ANDROID_WEBVIEW_BROWSER_AW_GL_SURFACE_H_ 42 #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