blob: 1c2fefcdd64544e183b781ec56aadf60e610ca17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
#define UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
#include "ui/base/ui_base_export.h"
namespace cc {
class Layer;
}
namespace ui {
// Android interface for compositor-related tasks.
class UI_BASE_EXPORT WindowAndroidCompositor {
public:
virtual ~WindowAndroidCompositor() {}
virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) = 0;
virtual void OnVSync(base::TimeTicks frame_time,
base::TimeDelta vsync_period) = 0;
};
} // namespace ui
#endif // UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
|