Hash :
a100d8f4
        
        Author :
  
        
        Date :
2018-12-29T16:39:55
        
      
ParallelCompile: add GL backend support For GL backend, at first each worker thread must have a naitve context for its own to work in. These worker contexts have to be shared from the main context, so that all shader and program objects are seen in any context. This extends backend displays to create and destroy the worker contexts. RendererGL manages and allocates them to the worker threads. ShaderImpl has a new compile method added to do the actual glCompile work in worker thread. The ProgramGL's link method is broken down by introducing the LinkEventGL class. Bug: chromium:849576 Change-Id: Idc2c51b4b6c978781ae77810e62c480acc67ebb5 Reviewed-on: https://chromium-review.googlesource.com/c/1373015 Commit-Queue: Jie A Chen <jie.a.chen@intel.com> Reviewed-by: Geoff Lang <geofflang@chromium.org>
//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// RendererGLX.h: implements createWorkerContext for RendererGL.
#ifndef LIBANGLE_RENDERER_GL_GLX_RENDERERGLX_H_
#define LIBANGLE_RENDERER_GL_GLX_RENDERERGLX_H_
#include "libANGLE/renderer/gl/RendererGL.h"
namespace rx
{
class DisplayGLX;
class RendererGLX : public RendererGL
{
  public:
    RendererGLX(std::unique_ptr<FunctionsGL> functions,
                const egl::AttributeMap &attribMap,
                DisplayGLX *display);
    ~RendererGLX() override;
  private:
    WorkerContext *createWorkerContext(std::string *infoLog) override;
    DisplayGLX *mDisplay;
};
}  // namespace rx
#endif  // LIBANGLE_RENDERER_GL_GLX_RENDERERGLX_H_