OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 "components/mus/gles2/gl_surface_adapter.h" | 5 #include "services/ui/gles2/gl_surface_adapter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 | 8 |
9 namespace mus { | 9 namespace mus { |
10 | 10 |
11 GLSurfaceAdapterMus::GLSurfaceAdapterMus(scoped_refptr<gl::GLSurface> surface) | 11 GLSurfaceAdapterMus::GLSurfaceAdapterMus(scoped_refptr<gl::GLSurface> surface) |
12 : gl::GLSurfaceAdapter(surface.get()), | 12 : gl::GLSurfaceAdapter(surface.get()), |
13 surface_(surface), | 13 surface_(surface), |
14 weak_ptr_factory_(this) {} | 14 weak_ptr_factory_(this) {} |
15 | 15 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 adapter_callback_.Run(result); | 48 adapter_callback_.Run(result); |
49 original_callback.Run(result); | 49 original_callback.Run(result); |
50 } | 50 } |
51 | 51 |
52 void GLSurfaceAdapterMus::SetGpuCompletedSwapBuffersCallback( | 52 void GLSurfaceAdapterMus::SetGpuCompletedSwapBuffersCallback( |
53 gl::GLSurface::SwapCompletionCallback callback) { | 53 gl::GLSurface::SwapCompletionCallback callback) { |
54 adapter_callback_ = std::move(callback); | 54 adapter_callback_ = std::move(callback); |
55 } | 55 } |
56 | 56 |
57 } // namespace mus | 57 } // namespace mus |
OLD | NEW |