Commit 330186ac authored by Mike Reed's avatar Mike Reed Committed by Commit Bot

Temporarily name last supported shader tilemode

This is needed to enable the starter impl CL for decal:
https://skia-review.googlesource.com/c/skia/+/107420

Bug: skia:7638
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel
Change-Id: I00638d8f54b48e8a0b04b10c2c0a556e0c6023ae
Reviewed-on: https://chromium-review.googlesource.com/922804Reviewed-by: default avatarvmpstr <vmpstr@chromium.org>
Commit-Queue: Mike Reed <reed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537198}
parent 04085016
...@@ -53,7 +53,8 @@ bool IsValidPaintShaderType(PaintShader::Type type) { ...@@ -53,7 +53,8 @@ bool IsValidPaintShaderType(PaintShader::Type type) {
} }
bool IsValidSkShaderTileMode(SkShader::TileMode mode) { bool IsValidSkShaderTileMode(SkShader::TileMode mode) {
return mode < SkShader::kTileModeCount; // When Skia adds Decal, update this (skbug.com/7638)
return mode <= SkShader::kMirror_TileMode;
} }
bool IsValidPaintShaderScalingBehavior(PaintShader::ScalingBehavior behavior) { bool IsValidPaintShaderScalingBehavior(PaintShader::ScalingBehavior behavior) {
......
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