mirror of
https://github.com/utmapp/angle.git
synced 2026-12-02 06:31:32 -10:00
Just the bare minimum implementation for end2end tests to run. BUG=angleproject:1362 TEST=angle_end2end_tests on Nexus 5X Change-Id: I92293e0f8bdc2ffaa5d4661927750d7cb3d931e6 Reviewed-on: https://chromium-review.googlesource.com/349353 Reviewed-by: Jamie Madill <[email protected]> Commit-Queue: Yuly Novikov <[email protected]>
37 lines
983 B
C++
37 lines
983 B
C++
//
|
|
// Copyright (c) 2016 The ANGLE Project Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
//
|
|
|
|
// AndroidWindow.h: Definition of the implementation of OSWindow for Android
|
|
|
|
#ifndef UTIL_ANDROID_WINDOW_H_
|
|
#define UTIL_ANDROID_WINDOW_H_
|
|
|
|
#include "OSWindow.h"
|
|
|
|
class AndroidWindow : public OSWindow
|
|
{
|
|
public:
|
|
AndroidWindow();
|
|
~AndroidWindow() override;
|
|
|
|
bool initialize(const std::string &name, size_t width, size_t height) override;
|
|
void destroy() override;
|
|
|
|
EGLNativeWindowType getNativeWindow() const override;
|
|
EGLNativeDisplayType getNativeDisplay() const override;
|
|
|
|
void messageLoop() override;
|
|
|
|
void setMousePosition(int x, int y) override;
|
|
bool setPosition(int x, int y) override;
|
|
bool resize(int width, int height) override;
|
|
void setVisible(bool isVisible) override;
|
|
|
|
void signalTestEvent() override;
|
|
};
|
|
|
|
#endif /* UTIL_ANDROID_WINDOW_H_ */
|