Commit c3b12cef authored by Wan-Teh Chang's avatar Wan-Teh Chang Committed by Commit Bot

Pass ColorSpace by ref to YUVToRGBConverter ctor

Pass gfx::ColorSpace by reference to the YUVToRGBConverter constructor.

Change-Id: I1f704e0eff21fbee47ab27df6f3c557684303812
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2211937Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Commit-Queue: Wan-Teh Chang <wtc@google.com>
Cr-Commit-Position: refs/heads/master@{#771154}
parent e8f0303e
......@@ -119,7 +119,7 @@ STRINGIZE(
} // namespace
YUVToRGBConverter::YUVToRGBConverter(const GLVersionInfo& gl_version_info,
const gfx::ColorSpace color_space) {
const gfx::ColorSpace& color_space) {
std::unique_ptr<gfx::ColorTransform> color_transform =
gfx::ColorTransform::NewColorTransform(
color_space, color_space.GetAsFullRangeRGB(),
......
......@@ -18,7 +18,7 @@ struct GLVersionInfo;
class YUVToRGBConverter {
public:
explicit YUVToRGBConverter(const GLVersionInfo& gl_version_info,
const gfx::ColorSpace color_space);
const gfx::ColorSpace& color_space);
~YUVToRGBConverter();
// The input Y and UV textures should be bound to these texture objects
......
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