diff options
author | Brian Salomon <bsalomon@google.com> | 2017-01-29 09:34:17 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-30 16:39:41 +0000 |
commit | 3de0aee181b8fe0013b15100cba7381eb0468db4 (patch) | |
tree | 5e08bf4394a36d800d07555112d1e1eb9c2a652d /src/gpu/ops/GrLatticeOp.cpp | |
parent | 7f660e84189adc92b1996b4b2e0f5a1ad897dff9 (diff) |
Make SkGpuDevice::drawVertices perform color byte order swap and premul step using vertex shader.
Change-Id: I8153ba8c6bb48d8b15d524fbfafbe3c6d83f39c5
Reviewed-on: https://skia-review.googlesource.com/7727
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/ops/GrLatticeOp.cpp')
-rw-r--r-- | src/gpu/ops/GrLatticeOp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/ops/GrLatticeOp.cpp b/src/gpu/ops/GrLatticeOp.cpp index 93c6f0f649..319e505745 100644 --- a/src/gpu/ops/GrLatticeOp.cpp +++ b/src/gpu/ops/GrLatticeOp.cpp @@ -17,7 +17,7 @@ static sk_sp<GrGeometryProcessor> create_gp() { using namespace GrDefaultGeoProcFactory; - return GrDefaultGeoProcFactory::Make(Color::kAttribute_Type, Coverage::kSolid_Type, + return GrDefaultGeoProcFactory::Make(Color::kPremulGrColorAttribute_Type, Coverage::kSolid_Type, LocalCoords::kHasExplicit_Type, SkMatrix::I()); } |