Edit

kc3-lang/angle/util/ios/IOSWindow.h

Branch :

  • Show log

    Commit

  • Author : James Darpinian
    Date : 2020-12-08 12:24:35
    Hash : 0dbe7cdd
    Message : iOS testing support angle_white_box_tests build and runs and passes on the iOS simulator with this change. angle_end2end_tests builds and runs but crashes. Bug: angleproject:4256 Bug: angleproject:5417 Change-Id: I8817e46415c4598cbfae49804727a2e9b21baff1 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2600361 Commit-Queue: James Darpinian <jdarpinian@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Kenneth Russell <kbr@chromium.org>

  • util/ios/IOSWindow.h
  • //
    // Copyright 2020 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.
    //
    
    // IOSWindow.h: Definition of the implementation of OSWindow for iOS
    
    #ifndef UTIL_IOS_WINDOW_H_
    #define UTIL_IOS_WINDOW_H_
    
    #include "common/debug.h"
    #include "util/OSWindow.h"
    
    class IOSWindow : public OSWindow
    {
      public:
        IOSWindow() {}
        ~IOSWindow() override {}
    
        void disableErrorMessageDialog() override {}
        void destroy() override {}
    
        void resetNativeWindow() override {}
        EGLNativeWindowType getNativeWindow() const override;
        EGLNativeDisplayType getNativeDisplay() const override { return EGL_DEFAULT_DISPLAY; }
    
        void messageLoop() override {}
    
        void setMousePosition(int x, int y) override { UNIMPLEMENTED(); }
        bool setOrientation(int width, int height) override;
        bool setPosition(int x, int y) override
        {
            UNIMPLEMENTED();
            return false;
        }
        bool resize(int width, int height) override;
        void setVisible(bool isVisible) override {}
    
        void signalTestEvent() override { UNIMPLEMENTED(); }
    
      private:
        bool initializeImpl(const std::string &name, int width, int height) override;
    };
    
    #endif  // UTIL_IOS_WINDOW_H_