| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |