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

Unified Diff: ui/gl/gl_surface_win.cc

Issue 1166463004: Revert of Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_surface_wgl.cc ('k') | ui/gl/gl_surface_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_win.cc
diff --git a/ui/gl/gl_surface_win.cc b/ui/gl/gl_surface_win.cc
index c416e6b21ce59c796da6618c9b4c27deaab03974..7f6dfd79fe21094e1d2a3301c3f9d7247f80c483 100644
--- a/ui/gl/gl_surface_win.cc
+++ b/ui/gl/gl_surface_win.cc
@@ -37,9 +37,9 @@
bool Initialize() override;
void Destroy() override;
bool IsOffscreen() override;
- gfx::SwapResult SwapBuffers() override;
+ bool SwapBuffers() override;
bool SupportsPostSubBuffer() override;
- gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override;
+ bool PostSubBuffer(int x, int y, int width, int height) override;
private:
~NativeViewGLSurfaceOSMesa() override;
@@ -208,7 +208,7 @@
return false;
}
-gfx::SwapResult NativeViewGLSurfaceOSMesa::SwapBuffers() {
+bool NativeViewGLSurfaceOSMesa::SwapBuffers() {
DCHECK(device_context_);
gfx::Size size = GetSize();
@@ -241,17 +241,15 @@
DIB_RGB_COLORS,
SRCCOPY);
- return gfx::SwapResult::SWAP_ACK;
+ return true;
}
bool NativeViewGLSurfaceOSMesa::SupportsPostSubBuffer() {
return true;
}
-gfx::SwapResult NativeViewGLSurfaceOSMesa::PostSubBuffer(int x,
- int y,
- int width,
- int height) {
+bool NativeViewGLSurfaceOSMesa::PostSubBuffer(
+ int x, int y, int width, int height) {
DCHECK(device_context_);
gfx::Size size = GetSize();
@@ -284,7 +282,7 @@
DIB_RGB_COLORS,
SRCCOPY);
- return gfx::SwapResult::SWAP_ACK;
+ return true;
}
scoped_refptr<GLSurface> GLSurface::CreateViewGLSurface(
« no previous file with comments | « ui/gl/gl_surface_wgl.cc ('k') | ui/gl/gl_surface_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698