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 UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ | 5 #ifndef UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ |
6 #define UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ | 6 #define UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include <memory> |
| 9 |
9 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
10 #include "ui/android/ui_android_export.h" | 11 #include "ui/android/ui_android_export.h" |
11 | 12 |
12 namespace cc { | 13 namespace cc { |
13 class Layer; | 14 class Layer; |
14 } | 15 } |
15 | 16 |
16 namespace ui { | 17 namespace ui { |
17 | 18 |
18 class ResourceManager; | 19 class ResourceManager; |
19 | 20 |
20 // Android interface for compositor-related tasks. | 21 // Android interface for compositor-related tasks. |
21 class UI_ANDROID_EXPORT WindowAndroidCompositor { | 22 class UI_ANDROID_EXPORT WindowAndroidCompositor { |
22 public: | 23 public: |
23 virtual ~WindowAndroidCompositor() {} | 24 virtual ~WindowAndroidCompositor() {} |
24 | 25 |
25 virtual void RequestCopyOfOutputOnRootLayer( | 26 virtual void RequestCopyOfOutputOnRootLayer( |
26 std::unique_ptr<cc::CopyOutputRequest> request) = 0; | 27 std::unique_ptr<cc::CopyOutputRequest> request) = 0; |
27 virtual void OnVSync(base::TimeTicks frame_time, | 28 virtual void OnVSync(base::TimeTicks frame_time, |
28 base::TimeDelta vsync_period) = 0; | 29 base::TimeDelta vsync_period) = 0; |
29 virtual void SetNeedsAnimate() = 0; | 30 virtual void SetNeedsAnimate() = 0; |
30 virtual ResourceManager& GetResourceManager() = 0; | 31 virtual ResourceManager& GetResourceManager() = 0; |
31 }; | 32 }; |
32 | 33 |
33 } // namespace ui | 34 } // namespace ui |
34 | 35 |
35 #endif // UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ | 36 #endif // UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ |
OLD | NEW |