diff options
author | 2017-12-05 16:27:11 -0500 | |
---|---|---|
committer | 2017-12-07 20:52:40 +0000 | |
commit | 7af060a8bcc250af00b0dadaf10d414765dc94f9 (patch) | |
tree | 282a8c41b0a49b70640ce280d89142dc668d18df /src/gpu/effects | |
parent | 4e5029744d5adc542857ca506607e2135d288e57 (diff) |
Add gray_8_as_lum and _as_red private grpixelconfigs
Bug: skia:
Change-Id: I70cbd0bc9f7a7a16fb9f0688d272d7afa607700a
Reviewed-on: https://skia-review.googlesource.com/80622
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/effects')
-rw-r--r-- | src/gpu/effects/GrDitherEffect.fp | 2 | ||||
-rw-r--r-- | src/gpu/effects/GrDitherEffect.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/effects/GrDitherEffect.fp b/src/gpu/effects/GrDitherEffect.fp index 1f4f3039b1..c47898e6ed 100644 --- a/src/gpu/effects/GrDitherEffect.fp +++ b/src/gpu/effects/GrDitherEffect.fp @@ -6,6 +6,8 @@ layout(key) in int rangeType; int rangeType; switch (dstConfig) { case kGray_8_GrPixelConfig: + case kGray_8_as_Lum_GrPixelConfig: + case kGray_8_as_Red_GrPixelConfig: case kRGBA_8888_GrPixelConfig: case kBGRA_8888_GrPixelConfig: case kSRGBA_8888_GrPixelConfig: diff --git a/src/gpu/effects/GrDitherEffect.h b/src/gpu/effects/GrDitherEffect.h index a11ea666a1..1b944a852d 100644 --- a/src/gpu/effects/GrDitherEffect.h +++ b/src/gpu/effects/GrDitherEffect.h @@ -22,6 +22,8 @@ public: int rangeType; switch (dstConfig) { case kGray_8_GrPixelConfig: + case kGray_8_as_Lum_GrPixelConfig: + case kGray_8_as_Red_GrPixelConfig: case kRGBA_8888_GrPixelConfig: case kBGRA_8888_GrPixelConfig: case kSRGBA_8888_GrPixelConfig: |