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

Side by Side Diff: gpu/ipc/service/image_transport_surface_android.cc

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
« no previous file with comments | « no previous file | gpu/ipc/service/image_transport_surface_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/logging.h" 7 #include "base/logging.h"
8 #include "gpu/ipc/common/gpu_surface_lookup.h" 8 #include "gpu/ipc/common/gpu_surface_lookup.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/gl/gl_surface_egl.h" 10 #include "ui/gl/gl_surface_egl.h"
(...skipping 19 matching lines...) Expand all
30 LOG(WARNING) << "Failed to acquire native widget."; 30 LOG(WARNING) << "Failed to acquire native widget.";
31 return nullptr; 31 return nullptr;
32 } 32 }
33 scoped_refptr<gl::GLSurface> surface = new gl::NativeViewGLSurfaceEGL(window); 33 scoped_refptr<gl::GLSurface> surface = new gl::NativeViewGLSurfaceEGL(window);
34 bool initialize_success = surface->Initialize(format); 34 bool initialize_success = surface->Initialize(format);
35 ANativeWindow_release(window); 35 ANativeWindow_release(window);
36 if (!initialize_success) 36 if (!initialize_success)
37 return scoped_refptr<gl::GLSurface>(); 37 return scoped_refptr<gl::GLSurface>();
38 38
39 return scoped_refptr<gl::GLSurface>( 39 return scoped_refptr<gl::GLSurface>(
40 new PassThroughImageTransportSurface(manager, stub, surface.get())); 40 new PassThroughImageTransportSurface(stub, surface.get()));
41 } 41 }
42 42
43 } // namespace gpu 43 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/ipc/service/image_transport_surface_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698