OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LINUX_BLIMP_DISPLAY_MANAGER_H_ | 5 #ifndef BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ |
6 #define BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ | 6 #define BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; | 49 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; |
50 void OnLostCapture() override; | 50 void OnLostCapture() override; |
51 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 51 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
52 float device_pixel_ratio) override; | 52 float device_pixel_ratio) override; |
53 void OnAcceleratedWidgetDestroyed() override; | 53 void OnAcceleratedWidgetDestroyed() override; |
54 void OnActivationChanged(bool active) override; | 54 void OnActivationChanged(bool active) override; |
55 | 55 |
56 private: | 56 private: |
57 // BlimpCompositorManagerClient implementation. | 57 // BlimpCompositorManagerClient implementation. |
58 void OnSwapBuffersCompleted() override; | 58 void OnSwapBuffersCompleted() override; |
| 59 void DidCommitAndDrawFrame() override; |
59 | 60 |
60 float device_pixel_ratio_; | 61 float device_pixel_ratio_; |
61 | 62 |
62 BlimpDisplayManagerDelegate* delegate_; | 63 BlimpDisplayManagerDelegate* delegate_; |
63 TabControlFeature* tab_control_feature_; | 64 TabControlFeature* tab_control_feature_; |
64 | 65 |
65 std::unique_ptr<BlimpCompositorManager> blimp_compositor_manager_; | 66 std::unique_ptr<BlimpCompositorManager> blimp_compositor_manager_; |
66 std::unique_ptr<ui::PlatformWindow> platform_window_; | 67 std::unique_ptr<ui::PlatformWindow> platform_window_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(BlimpDisplayManager); | 69 DISALLOW_COPY_AND_ASSIGN(BlimpDisplayManager); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace client | 72 } // namespace client |
72 } // namespace blimp | 73 } // namespace blimp |
73 | 74 |
74 #endif // BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ | 75 #endif // BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ |
OLD | NEW |