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

Unified Diff: gpu/ipc/service/image_transport_surface_mac.mm

Issue 2616723002: Refactor GL surface format handling (Closed)
Patch Set: Created 3 years, 11 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
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()) {

Powered by Google App Engine
This is Rietveld 408576698