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.mm: Implements the class methods for RendererCGL. 8 9 #include "libANGLE/renderer/gl/cgl/RendererCGL.h" 10 11 #if defined(ANGLE_PLATFORM_MACOS) || defined(ANGLE_PLATFORM_MACCATALYST) 12 13 # include "libANGLE/renderer/gl/cgl/DisplayCGL.h" 14 15 namespace rx 16 { 17 RendererCGL(std::unique_ptr<FunctionsGL> functions,const egl::AttributeMap & attribMap,DisplayCGL * display)18RendererCGL::RendererCGL(std::unique_ptr<FunctionsGL> functions, 19 const egl::AttributeMap &attribMap, 20 DisplayCGL *display) 21 : RendererGL(std::move(functions), attribMap, display), mDisplay(display) 22 {} 23 ~RendererCGL()24RendererCGL::~RendererCGL() {} 25 createWorkerContext(std::string * infoLog)26WorkerContext *RendererCGL::createWorkerContext(std::string *infoLog) 27 { 28 return mDisplay->createWorkerContext(infoLog); 29 } 30 31 } // namespace rx 32 33 #endif // defined(ANGLE_PLATFORM_MACOS) || defined(ANGLE_PLATFORM_MACCATALYST) 34