Index: gpu/ipc/service/image_transport_surface_mac.mm |
diff --git a/gpu/ipc/service/image_transport_surface_mac.mm b/gpu/ipc/service/image_transport_surface_mac.mm |
index 42591a7bcc9e79863e4892beb4aee2e6049def0e..cd82de1e964d4e841a4db1c221b4a5d36cd9a13d 100644 |
--- a/gpu/ipc/service/image_transport_surface_mac.mm |
+++ b/gpu/ipc/service/image_transport_surface_mac.mm |
@@ -21,7 +21,8 @@ class DRTSurfaceOSMesa : public gl::GLSurfaceOSMesa { |
public: |
// Size doesn't matter, the surface is resized to the right size later. |
DRTSurfaceOSMesa() |
- : GLSurfaceOSMesa(gl::GLSurface::SURFACE_OSMESA_RGBA, gfx::Size(1, 1)) {} |
+ : GLSurfaceOSMesa(gl::GLSurfaceFormat(SURFACE_OSMESA_RGBA), |
+ gfx::Size(1, 1)) {} |
// Implement a subset of GLSurface. |
gfx::SwapResult SwapBuffers() override; |
@@ -43,7 +44,7 @@ bool g_allow_os_mesa = false; |
scoped_refptr<gl::GLSurface> ImageTransportSurface::CreateNativeSurface( |
base::WeakPtr<ImageTransportSurfaceDelegate> delegate, |
SurfaceHandle surface_handle, |
- gl::GLSurface::Format format) { |
+ gl::GLSurfaceFormat format) { |
DCHECK_NE(surface_handle, kNullSurfaceHandle); |
switch (gl::GetGLImplementation()) { |