Commit 10bed9fc by Jamie Madill Committed by Commit Bot

Minor optimizations to DynamicHLSL.

This makes us use std::ostringstream in more places, instead of string concatenation. BUG=chromium:697758 Change-Id: Ifdcaa2e7e119664fc9cfdc566ea13b519a294714 Reviewed-on: https://chromium-review.googlesource.com/521729 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent bb1e750c
...@@ -147,13 +147,11 @@ class DynamicHLSL : angle::NonCopyable ...@@ -147,13 +147,11 @@ class DynamicHLSL : angle::NonCopyable
void generateVaryingLinkHLSL(const gl::VaryingPacking &varyingPacking, void generateVaryingLinkHLSL(const gl::VaryingPacking &varyingPacking,
const BuiltinInfo &builtins, const BuiltinInfo &builtins,
bool programUsesPointSize, bool programUsesPointSize,
std::stringstream &hlslStream) const; std::ostringstream &hlslStream) const;
// Prepend an underscore static void GenerateAttributeConversionHLSL(gl::VertexFormatType vertexFormatType,
static std::string decorateVariable(const std::string &name); const sh::ShaderVariable &shaderAttrib,
std::ostringstream &outStream);
std::string generateAttributeConversionHLSL(gl::VertexFormatType vertexFormatType,
const sh::ShaderVariable &shaderAttrib) const;
}; };
} // namespace rx } // namespace rx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment