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/wgl/ContextWGL.h" 8 9 namespace rx 10 { ContextWGL(const gl::State & state,gl::ErrorSet * errorSet,const std::shared_ptr<RendererWGL> & renderer)11ContextWGL::ContextWGL(const gl::State &state, 12 gl::ErrorSet *errorSet, 13 const std::shared_ptr<RendererWGL> &renderer) 14 : ContextGL(state, errorSet, renderer, RobustnessVideoMemoryPurgeStatus::NOT_REQUESTED), 15 mRendererWGL(renderer) 16 {} 17 ~ContextWGL()18ContextWGL::~ContextWGL() {} 19 getContext() const20HGLRC ContextWGL::getContext() const 21 { 22 return mRendererWGL->getContext(); 23 } 24 } // namespace rx 25