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

Side by Side Diff: components/mus/surfaces/surfaces_context_provider.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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
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 "components/mus/surfaces/surfaces_context_provider.h" 5 #include "components/mus/surfaces/surfaces_context_provider.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 delegate_->OnVSyncParametersUpdated(timebase, interval); 116 delegate_->OnVSyncParametersUpdated(timebase, interval);
117 } 117 }
118 118
119 void SurfacesContextProvider::GpuCompletedSwapBuffers(gfx::SwapResult result) { 119 void SurfacesContextProvider::GpuCompletedSwapBuffers(gfx::SwapResult result) {
120 if (!swap_buffers_completion_callback_.is_null()) { 120 if (!swap_buffers_completion_callback_.is_null()) {
121 swap_buffers_completion_callback_.Run(result); 121 swap_buffers_completion_callback_.Run(result);
122 } 122 }
123 } 123 }
124 124
125 void SurfacesContextProvider::SetSwapBuffersCompletionCallback( 125 void SurfacesContextProvider::SetSwapBuffersCompletionCallback(
126 gfx::GLSurface::SwapCompletionCallback callback) { 126 gl::GLSurface::SwapCompletionCallback callback) {
127 swap_buffers_completion_callback_ = callback; 127 swap_buffers_completion_callback_ = callback;
128 } 128 }
129 129
130 } // namespace mus 130 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/surfaces/surfaces_context_provider.h ('k') | components/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698