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