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

Side by Side Diff: gpu/ipc/service/image_transport_surface_mac.mm

Issue 2482423003: PassThroughImageTransportSurface: Remove unused parameter (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/ipc/service/image_transport_surface.h" 5 #include "gpu/ipc/service/image_transport_surface.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "gpu/ipc/service/image_transport_surface_overlay_mac.h" 8 #include "gpu/ipc/service/image_transport_surface_overlay_mac.h"
9 #include "gpu/ipc/service/pass_through_image_transport_surface.h" 9 #include "gpu/ipc/service/pass_through_image_transport_surface.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // image transport surface, but that surface isn't used to read pixel 60 // image transport surface, but that surface isn't used to read pixel
61 // baselines. So this is mostly a dummy surface. 61 // baselines. So this is mostly a dummy surface.
62 if (!g_allow_os_mesa) { 62 if (!g_allow_os_mesa) {
63 NOTREACHED(); 63 NOTREACHED();
64 return nullptr; 64 return nullptr;
65 } 65 }
66 scoped_refptr<gl::GLSurface> surface(new DRTSurfaceOSMesa()); 66 scoped_refptr<gl::GLSurface> surface(new DRTSurfaceOSMesa());
67 if (!surface.get() || !surface->Initialize(format)) 67 if (!surface.get() || !surface->Initialize(format))
68 return surface; 68 return surface;
69 return make_scoped_refptr<gl::GLSurface>( 69 return make_scoped_refptr<gl::GLSurface>(
70 new PassThroughImageTransportSurface(manager, stub, surface.get())); 70 new PassThroughImageTransportSurface(stub, surface.get()));
71 } 71 }
72 } 72 }
73 73
74 // static 74 // static
75 void ImageTransportSurface::SetAllowOSMesaForTesting(bool allow) { 75 void ImageTransportSurface::SetAllowOSMesaForTesting(bool allow) {
76 g_allow_os_mesa = allow; 76 g_allow_os_mesa = allow;
77 } 77 }
78 78
79 } // namespace gpu 79 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/service/image_transport_surface_linux.cc ('k') | gpu/ipc/service/image_transport_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698