• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "libANGLE/renderer/gl/egl/ContextEGL.h"
8 
9 namespace rx
10 {
ContextEGL(const gl::State & state,gl::ErrorSet * errorSet,const std::shared_ptr<RendererEGL> & renderer)11 ContextEGL::ContextEGL(const gl::State &state,
12                        gl::ErrorSet *errorSet,
13                        const std::shared_ptr<RendererEGL> &renderer)
14     : ContextGL(state, errorSet, renderer), mRendererEGL(renderer)
15 {}
16 
~ContextEGL()17 ContextEGL::~ContextEGL() {}
18 
getContext() const19 EGLContext ContextEGL::getContext() const
20 {
21     return mRendererEGL->getContext();
22 }
23 }  // namespace rx
24