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

Unified Diff: content/common/gpu/image_transport_surface_mac.mm

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, 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 | « content/common/gpu/image_transport_surface_fbo_mac.mm ('k') | content/common/gpu/null_transport_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface_mac.mm
diff --git a/content/common/gpu/image_transport_surface_mac.mm b/content/common/gpu/image_transport_surface_mac.mm
index 7966d5ac71202b4217c0b07f9c870b5bfcdf9dc7..04b6bc3b4d542372e50fe1e7ce02749c4df7af03 100644
--- a/content/common/gpu/image_transport_surface_mac.mm
+++ b/content/common/gpu/image_transport_surface_mac.mm
@@ -28,15 +28,15 @@ class DRTSurfaceOSMesa : public gfx::GLSurfaceOSMesa {
: GLSurfaceOSMesa(gfx::OSMesaSurfaceFormatRGBA, gfx::Size(1, 1)) {}
// Implement a subset of GLSurface.
- bool SwapBuffers() override;
+ gfx::SwapResult SwapBuffers() override;
private:
~DRTSurfaceOSMesa() override {}
DISALLOW_COPY_AND_ASSIGN(DRTSurfaceOSMesa);
};
-bool DRTSurfaceOSMesa::SwapBuffers() {
- return true;
+gfx::SwapResult DRTSurfaceOSMesa::SwapBuffers() {
+ return gfx::SwapResult::SWAP_ACK;
}
bool g_allow_os_mesa = false;
« no previous file with comments | « content/common/gpu/image_transport_surface_fbo_mac.mm ('k') | content/common/gpu/null_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698