Update V8 to version 4.4.18.
[chromium-blink-merge.git] / ui / android / window_android_compositor.h
blobedd743f15396a0ed0b0266e5dcf707eac98a5526
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
3 // found in the LICENSE file.
5 #ifndef UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
6 #define UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
8 #include "cc/output/copy_output_request.h"
9 #include "ui/android/ui_android_export.h"
11 namespace cc {
12 class Layer;
15 namespace ui {
17 class ResourceManager;
19 // Android interface for compositor-related tasks.
20 class UI_ANDROID_EXPORT WindowAndroidCompositor {
21 public:
22 virtual ~WindowAndroidCompositor() {}
24 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) = 0;
25 virtual void RequestCopyOfOutputOnRootLayer(
26 scoped_ptr<cc::CopyOutputRequest> request) = 0;
27 virtual void OnVSync(base::TimeTicks frame_time,
28 base::TimeDelta vsync_period) = 0;
29 virtual void SetNeedsAnimate() = 0;
30 virtual ResourceManager& GetResourceManager() = 0;
33 } // namespace ui
35 #endif // UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_