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 // ContextCGL: 7 // Mac-specific subclass of ContextGL. 8 // 9 10 #ifndef LIBANGLE_RENDERER_GL_CGL_CONTEXTCGL_H_ 11 #define LIBANGLE_RENDERER_GL_CGL_CONTEXTCGL_H_ 12 13 #include "libANGLE/renderer/gl/ContextGL.h" 14 #include "libANGLE/renderer/gl/RendererGL.h" 15 16 namespace rx 17 { 18 19 class ContextCGL : public ContextGL 20 { 21 public: 22 ContextCGL(const gl::State &state, 23 gl::ErrorSet *errorSet, 24 const std::shared_ptr<RendererGL> &renderer, 25 bool usesDiscreteGPU); 26 27 void onDestroy(const gl::Context *context) override; 28 29 private: 30 bool mUsesDiscreteGpu; 31 }; 32 33 } // namespace rx 34 35 #endif // LIBANGLE_RENDERER_GL_CGL_CONTEXTCGL_H_ 36