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 #ifndef UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ | 5 #ifndef UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ |
6 #define UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ | 6 #define UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ |
7 | 7 |
| 8 #include "cc/output/copy_output_request.h" |
8 #include "ui/base/ui_base_export.h" | 9 #include "ui/base/ui_base_export.h" |
9 | 10 |
10 namespace cc { | 11 namespace cc { |
11 class Layer; | 12 class Layer; |
12 } | 13 } |
13 | 14 |
14 namespace ui { | 15 namespace ui { |
15 | 16 |
16 // Android interface for compositor-related tasks. | 17 // Android interface for compositor-related tasks. |
17 class UI_BASE_EXPORT WindowAndroidCompositor { | 18 class UI_BASE_EXPORT WindowAndroidCompositor { |
18 public: | 19 public: |
19 virtual ~WindowAndroidCompositor() {} | 20 virtual ~WindowAndroidCompositor() {} |
20 | 21 |
21 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) = 0; | 22 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) = 0; |
| 23 virtual void RequestCopyOfOutputOnRootLayer( |
| 24 scoped_ptr<cc::CopyOutputRequest> request) = 0; |
22 virtual void OnVSync(base::TimeTicks frame_time, | 25 virtual void OnVSync(base::TimeTicks frame_time, |
23 base::TimeDelta vsync_period) = 0; | 26 base::TimeDelta vsync_period) = 0; |
24 }; | 27 }; |
25 | 28 |
26 } // namespace ui | 29 } // namespace ui |
27 | 30 |
28 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ | 31 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ |
OLD | NEW |