From 216a9d7c3be53424cd219ed9c2f22adfda19aced Mon Sep 17 00:00:00 2001
From: Greg Daniel <egdaniel@google.com>
Date: Wed, 20 Feb 2019 10:12:29 -0500
Subject: [PATCH] Fix setting of GL texture swizzle when using 1 for swizzle.

Bug: skia:
Change-Id: I96a128fa0bad282ae4566a6cb967d0de459448b1
Reviewed-on: https://skia-review.googlesource.com/c/193467
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
---
 src/gpu/gl/GrGLGpu.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
index ebda8ac62c..7a662899c6 100644
--- a/src/gpu/gl/GrGLGpu.cpp
+++ b/src/gpu/gl/GrGLGpu.cpp
@@ -2970,6 +2970,7 @@ static void get_gl_swizzle_values(const GrSwizzle& swizzle, GrGLenum glValues[4]
             case 'g': glValues[i] = GR_GL_GREEN; break;
             case 'b': glValues[i] = GR_GL_BLUE;  break;
             case 'a': glValues[i] = GR_GL_ALPHA; break;
+            case '1': glValues[i] = GR_GL_ONE;   break;
             default:  SK_ABORT("Unsupported component");
         }
     }