| 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 #ifndef BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ | 5 #ifndef BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ |
| 6 #define BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ | 6 #define BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "blimp/client/support/compositor/blimp_embedder_compositor.h" | 9 #include "blimp/client/support/compositor/blimp_embedder_compositor.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // draw to the screen. | 28 // draw to the screen. |
| 29 void SetAcceleratedWidget(gfx::AcceleratedWidget widget); | 29 void SetAcceleratedWidget(gfx::AcceleratedWidget widget); |
| 30 | 30 |
| 31 // A callback to get notifed when the compositor performs a successful swap. | 31 // A callback to get notifed when the compositor performs a successful swap. |
| 32 void set_did_complete_swap_buffers_callback(base::Closure callback) { | 32 void set_did_complete_swap_buffers_callback(base::Closure callback) { |
| 33 did_complete_swap_buffers_ = callback; | 33 did_complete_swap_buffers_ = callback; |
| 34 } | 34 } |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 // BlimpEmbedderCompositor implementation. | 37 // BlimpEmbedderCompositor implementation. |
| 38 void DidCompleteSwapBuffers() override; | 38 void DidReceiveCompositorFrameAck() override; |
| 39 | 39 |
| 40 base::Closure did_complete_swap_buffers_; | 40 base::Closure did_complete_swap_buffers_; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 DISALLOW_COPY_AND_ASSIGN(BrowserCompositor); | 43 DISALLOW_COPY_AND_ASSIGN(BrowserCompositor); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace client | 46 } // namespace client |
| 47 } // namespace blimp | 47 } // namespace blimp |
| 48 | 48 |
| 49 #endif // BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ | 49 #endif // BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ |
| OLD | NEW |