blob: bbf582af7d2baeb8930ff0cfea3a60298aef49c1 [file] [log] [blame]
//
// Copyright 2018 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.
//
// ContextEGL.h: Context class for GL on Android/ChromeOS. Wraps a RendererEGL.
#ifndef LIBANGLE_RENDERER_GL_EGL_CONTEXTEGL_H_
#define LIBANGLE_RENDERER_GL_EGL_CONTEXTEGL_H_
#include "libANGLE/renderer/gl/ContextGL.h"
#include "libANGLE/renderer/gl/egl/RendererEGL.h"
namespace rx
{
class ContextEGL : public ContextGL
{
public:
ContextEGL(const gl::State &state,
gl::ErrorSet *errorSet,
const std::shared_ptr<RendererEGL> &renderer);
~ContextEGL() override;
EGLContext getContext() const;
private:
std::shared_ptr<RendererEGL> mRendererEGL;
};
} // namespace rx
#endif // LIBANGLE_RENDERER_GL_EGL_RENDEREREGL_H_