~andreas-pokorny/mir/awkward-output-scaling

« back to all changes in this revision

Viewing changes to src/platforms/android/include/mir_native_window.h

  • Committer: Andreas Pokorny
  • Date: 2016-08-09 21:00:37 UTC
  • mfrom: (3579.1.57 trunk)
  • Revision ID: andreas.pokorny@canonical.com-20160809210037-wenmqqqbmhpft538
update to current lp:mir

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
{
33
33
class AndroidDriverInterpreter;
34
34
class SyncFileOps;
 
35
class NativeWindowReport;
35
36
 
36
37
class MirNativeWindow : public ANativeWindow
37
38
{
38
39
public:
39
 
    explicit MirNativeWindow(std::shared_ptr<AndroidDriverInterpreter> const& interpreter);
 
40
    explicit MirNativeWindow(
 
41
        std::shared_ptr<AndroidDriverInterpreter> const& interpreter,
 
42
        std::shared_ptr<NativeWindowReport> const& report);
40
43
 
41
44
    int query(int key, int* value) const;
42
45
    int perform(int key, va_list args );
43
46
    int dequeueBuffer(struct ANativeWindowBuffer** buffer, int* fence);
44
47
    int dequeueBufferAndWait(struct ANativeWindowBuffer** buffer);
45
48
    int queueBuffer(struct ANativeWindowBuffer* buffer, int fence);
 
49
    int queueBufferDeprecated(struct ANativeWindowBuffer* buffer);
46
50
    int cancelBuffer(struct ANativeWindowBuffer* buffer, int fence);
 
51
    int cancelBufferDeprecated(struct ANativeWindowBuffer* buffer);
47
52
    int setSwapInterval(int interval);
48
53
private:
49
54
    std::shared_ptr<AndroidDriverInterpreter> const driver_interpreter;
 
55
    std::shared_ptr<NativeWindowReport> const report;
50
56
    std::shared_ptr<SyncFileOps> const sync_ops;
51
57
    std::vector<struct ANativeWindowBuffer*> cancelled_buffers;
52
58
};