summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorachaulk <achaulk@chromium.org>2015-05-28 18:36:21 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-29 01:36:56 +0000
commitc794eda78e9ba3c46b550b433e9fe5a248d40104 (patch)
tree8054088552654845102920183531ee33d1c12914 /android_webview
parentbcb07449ce226e9263cf4f2637a1656377782e17 (diff)
downloadchromium_src-c794eda78e9ba3c46b550b433e9fe5a248d40104.zip
chromium_src-c794eda78e9ba3c46b550b433e9fe5a248d40104.tar.gz
chromium_src-c794eda78e9ba3c46b550b433e9fe5a248d40104.tar.bz2
Adding status to swap buffers completion
This will give us more options than completing all swaps successfully, or losing context BUG=476966 TBR=torne - approved interface change Review URL: https://codereview.chromium.org/1084173004 Cr-Commit-Position: refs/heads/master@{#331906}
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/browser/aw_gl_surface.cc4
-rw-r--r--android_webview/browser/aw_gl_surface.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/android_webview/browser/aw_gl_surface.cc b/android_webview/browser/aw_gl_surface.cc
index 5ff9272..a542275 100644
--- a/android_webview/browser/aw_gl_surface.cc
+++ b/android_webview/browser/aw_gl_surface.cc
@@ -21,8 +21,8 @@ unsigned int AwGLSurface::GetBackingFrameBufferObject() {
return fbo_;
}
-bool AwGLSurface::SwapBuffers() {
- return true;
+gfx::SwapResult AwGLSurface::SwapBuffers() {
+ return gfx::SwapResult::SWAP_ACK;
}
gfx::Size AwGLSurface::GetSize() {
diff --git a/android_webview/browser/aw_gl_surface.h b/android_webview/browser/aw_gl_surface.h
index 128b5515..6366a35 100644
--- a/android_webview/browser/aw_gl_surface.h
+++ b/android_webview/browser/aw_gl_surface.h
@@ -20,7 +20,7 @@ class GL_EXPORT AwGLSurface : public gfx::GLSurface {
void Destroy() override;
bool IsOffscreen() override;
unsigned int GetBackingFrameBufferObject() override;
- bool SwapBuffers() override;
+ gfx::SwapResult SwapBuffers() override;
gfx::Size GetSize() override;
void* GetHandle() override;
void* GetDisplay() override;