1 // 2 // Copyright 2019 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 // RendererGLX.h: implements createWorkerContext for RendererGL. 8 9 #ifndef LIBANGLE_RENDERER_GL_GLX_RENDERERGLX_H_ 10 #define LIBANGLE_RENDERER_GL_GLX_RENDERERGLX_H_ 11 12 #include "libANGLE/renderer/gl/RendererGL.h" 13 14 namespace rx 15 { 16 17 class DisplayGLX; 18 19 class RendererGLX : public RendererGL 20 { 21 public: 22 RendererGLX(std::unique_ptr<FunctionsGL> functions, 23 const egl::AttributeMap &attribMap, 24 DisplayGLX *display); 25 ~RendererGLX() override; 26 27 private: 28 WorkerContext *createWorkerContext(std::string *infoLog) override; 29 30 DisplayGLX *mDisplay; 31 }; 32 33 } // namespace rx 34 35 #endif // LIBANGLE_RENDERER_GL_GLX_RENDERERGLX_H_ 36