Edit

kc3-lang/angle/src/libANGLE/renderer/null/ShaderNULL.cpp

Branch :

  • Show log

    Commit

  • Author : jchen10
    Date : 2018-08-16 15:26:39
    Hash : a155bacf
    Message : ParallelCompile: Parallelize shader translation This changes to construct a new ShHandle of compiler for each Shader, and use it to translate the shader source in a background thread. Bug: chromium:849576 Change-Id: Ib49952c7292321ee6aa1c5996f8f7927f40d8f04 Reviewed-on: https://chromium-review.googlesource.com/1177195 Commit-Queue: Jie A Chen <jie.a.chen@intel.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/renderer/null/ShaderNULL.cpp
  • //
    // Copyright 2016 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.
    //
    // ShaderNULL.cpp:
    //    Implements the class methods for ShaderNULL.
    //
    
    #include "libANGLE/renderer/null/ShaderNULL.h"
    
    #include "common/debug.h"
    
    namespace rx
    {
    
    ShaderNULL::ShaderNULL(const gl::ShaderState &data) : ShaderImpl(data)
    {
    }
    
    ShaderNULL::~ShaderNULL()
    {
    }
    
    ShCompileOptions ShaderNULL::prepareSourceAndReturnOptions(const gl::Context *context,
                                                               std::stringstream *sourceStream,
                                                               std::string *sourcePath)
    {
        *sourceStream << mData.getSource();
        return 0;
    }
    
    bool ShaderNULL::postTranslateCompile(gl::ShCompilerInstance *compiler, std::string *infoLog)
    {
        return true;
    }
    
    std::string ShaderNULL::getDebugInfo() const
    {
        return "";
    }
    
    }  // namespace rx