| OLD | NEW |
| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "gpu/ipc/service/child_window_surface_win.h" | 9 #include "gpu/ipc/service/child_window_surface_win.h" |
| 10 #include "gpu/ipc/service/pass_through_image_transport_surface.h" | 10 #include "gpu/ipc/service/pass_through_image_transport_surface.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 if (!egl_surface->Initialize(std::move(vsync_provider))) | 43 if (!egl_surface->Initialize(std::move(vsync_provider))) |
| 44 return nullptr; | 44 return nullptr; |
| 45 } else { | 45 } else { |
| 46 surface = gl::init::CreateViewGLSurface(surface_handle); | 46 surface = gl::init::CreateViewGLSurface(surface_handle); |
| 47 if (!surface) | 47 if (!surface) |
| 48 return nullptr; | 48 return nullptr; |
| 49 } | 49 } |
| 50 | 50 |
| 51 return scoped_refptr<gl::GLSurface>( | 51 return scoped_refptr<gl::GLSurface>( |
| 52 new PassThroughImageTransportSurface(manager, stub, surface.get())); | 52 new PassThroughImageTransportSurface(stub, surface.get())); |
| 53 } | 53 } |
| 54 | 54 |
| 55 } // namespace gpu | 55 } // namespace gpu |
| OLD | NEW |