1 // 2 // Copyright 2018 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 // RendererEGL.h: Renderer class for GL on Android/ChromeOS. Owns an EGL context object. 8 9 #ifndef LIBANGLE_RENDERER_GL_EGL_RENDEREREGL_H_ 10 #define LIBANGLE_RENDERER_GL_EGL_RENDEREREGL_H_ 11 12 #include "libANGLE/renderer/gl/RendererGL.h" 13 14 namespace rx 15 { 16 class DisplayEGL; 17 18 class RendererEGL : public RendererGL 19 { 20 public: 21 RendererEGL(std::unique_ptr<FunctionsGL> functionsGL, 22 const egl::AttributeMap &attribMap, 23 DisplayEGL *display, 24 EGLContext context, 25 bool isExternalContext); 26 ~RendererEGL() override; 27 28 EGLContext getContext() const; 29 30 private: 31 DisplayEGL *mDisplay; 32 EGLContext mContext; 33 const bool mIsExternalContext; 34 }; 35 } // namespace rx 36 37 #endif // LIBANGLE_RENDERER_GL_EGL_RENDEREREGL_H_ 38