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

Side by Side Diff: services/ui/gles2/gl_surface_adapter.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « services/ui/gles2/gl_surface_adapter.h ('k') | services/ui/gles2/gpu_impl.h » ('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) 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
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
OLDNEW
« no previous file with comments | « services/ui/gles2/gl_surface_adapter.h ('k') | services/ui/gles2/gpu_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698