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