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 // ContextEGL.h: Context class for GL on Android/ChromeOS. Wraps a RendererEGL. 8 9 #ifndef LIBANGLE_RENDERER_GL_EGL_CONTEXTEGL_H_ 10 #define LIBANGLE_RENDERER_GL_EGL_CONTEXTEGL_H_ 11 12 #include "libANGLE/renderer/gl/ContextGL.h" 13 #include "libANGLE/renderer/gl/egl/RendererEGL.h" 14 15 namespace rx 16 { 17 class ContextEGL : public ContextGL 18 { 19 public: 20 ContextEGL(const gl::State &state, 21 gl::ErrorSet *errorSet, 22 const std::shared_ptr<RendererEGL> &renderer); 23 ~ContextEGL() override; 24 25 EGLContext getContext() const; 26 27 private: 28 std::shared_ptr<RendererEGL> mRendererEGL; 29 }; 30 } // namespace rx 31 32 #endif // LIBANGLE_RENDERER_GL_EGL_RENDEREREGL_H_ 33