Edit

kc3-lang/angle/util/android/AndroidWindow.h

Branch :

  • Show log

    Commit

  • Author : Yuly Novikov
    Date : 2016-06-03 00:18:38
    Hash : a6426d67
    Message : Android GL backend and end2end tests 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 <jmadill@chromium.org> Commit-Queue: Yuly Novikov <ynovikov@chromium.org>

  • util/android/AndroidWindow.h
  • //
    // 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_ */