• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2020 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 // RendererEAGL.cpp: Implements the class methods for RendererEAGL.
8 
9 #import "common/platform.h"
10 
11 #if defined(ANGLE_ENABLE_EAGL)
12 
13 #    include "libANGLE/renderer/gl/eagl/DisplayEAGL.h"
14 #    include "libANGLE/renderer/gl/eagl/RendererEAGL.h"
15 
16 namespace rx
17 {
18 
RendererEAGL(std::unique_ptr<FunctionsGL> functions,const egl::AttributeMap & attribMap,DisplayEAGL * display)19 RendererEAGL::RendererEAGL(std::unique_ptr<FunctionsGL> functions,
20                            const egl::AttributeMap &attribMap,
21                            DisplayEAGL *display)
22     : RendererGL(std::move(functions), attribMap, display), mDisplay(display)
23 {}
24 
~RendererEAGL()25 RendererEAGL::~RendererEAGL() {}
26 
createWorkerContext(std::string * infoLog)27 WorkerContext *RendererEAGL::createWorkerContext(std::string *infoLog)
28 {
29     return mDisplay->createWorkerContext(infoLog);
30 }
31 
32 }  // namespace rx
33 
34 #endif  // defined(ANGLE_ENABLE_EAGL)
35