| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "blimp/client/app/compositor/browser_compositor.h" | 5 #include "blimp/client/app/compositor/browser_compositor.h" |
| 6 | 6 |
| 7 #include "blimp/client/public/compositor/compositor_dependencies.h" | 7 #include "blimp/client/public/compositor/compositor_dependencies.h" |
| 8 #include "blimp/client/support/compositor/blimp_context_provider.h" | 8 #include "blimp/client/support/compositor/blimp_context_provider.h" |
| 9 #include "cc/output/context_provider.h" | 9 #include "cc/output/context_provider.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 scoped_refptr<cc::ContextProvider> provider; | 21 scoped_refptr<cc::ContextProvider> provider; |
| 22 | 22 |
| 23 if (widget != gfx::kNullAcceleratedWidget) { | 23 if (widget != gfx::kNullAcceleratedWidget) { |
| 24 provider = BlimpContextProvider::Create( | 24 provider = BlimpContextProvider::Create( |
| 25 widget, compositor_dependencies()->GetGpuMemoryBufferManager()); | 25 widget, compositor_dependencies()->GetGpuMemoryBufferManager()); |
| 26 } | 26 } |
| 27 | 27 |
| 28 SetContextProvider(std::move(provider)); | 28 SetContextProvider(std::move(provider)); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void BrowserCompositor::DidCompleteSwapBuffers() { | 31 void BrowserCompositor::DidReceiveCompositorFrameAck() { |
| 32 if (!did_complete_swap_buffers_.is_null()) { | 32 if (!did_complete_swap_buffers_.is_null()) { |
| 33 did_complete_swap_buffers_.Run(); | 33 did_complete_swap_buffers_.Run(); |
| 34 } | 34 } |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace client | 37 } // namespace client |
| 38 } // namespace blimp | 38 } // namespace blimp |
| OLD | NEW |