1 // 2 // Copyright 2020 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // DeviceEAGL.h: EAGL implementation of egl::Device 8 9 #ifndef LIBANGLE_RENDERER_GL_EAGL_DEVICEEAGL_H_ 10 #define LIBANGLE_RENDERER_GL_EAGL_DEVICEEAGL_H_ 11 12 #import "common/platform.h" 13 14 #if defined(ANGLE_ENABLE_EAGL) 15 16 # include "libANGLE/Device.h" 17 # include "libANGLE/renderer/DeviceImpl.h" 18 19 namespace rx 20 { 21 class DeviceEAGL : public DeviceImpl 22 { 23 public: 24 DeviceEAGL(); 25 ~DeviceEAGL() override; 26 27 egl::Error initialize() override; 28 egl::Error getAttribute(const egl::Display *display, 29 EGLint attribute, 30 void **outValue) override; 31 EGLint getType() override; 32 void generateExtensions(egl::DeviceExtensions *outExtensions) const override; 33 }; 34 35 } // namespace rx 36 37 #endif // defined(ANGLE_ENABLE_EAGL) 38 39 #endif // LIBANGLE_RENDERER_GL_EAGL_DEVICEEAGL_H_ 40