Remove newly-added SkDEBUGFAILs when we can't make an FP in drawAtlas.
Change-Id: I26db040493414635101a451fe77f79adf75704d6 Bug: skia:10662 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/313153 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
3cce1125f0
commit
c09645b616
@ -972,7 +972,6 @@ void SkGpuDevice::drawAtlas(const SkImage* atlas, const SkRSXform xform[],
|
||||
// Convert atlas to an image shader.
|
||||
sk_sp<SkShader> shader = atlas->makeShader();
|
||||
if (!shader) {
|
||||
SkDEBUGFAIL("unable to convert atlas to image shader");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -984,7 +983,6 @@ void SkGpuDevice::drawAtlas(const SkImage* atlas, const SkRSXform xform[],
|
||||
|
||||
std::unique_ptr<GrFragmentProcessor> shaderFP = as_SB(shader)->asFragmentProcessor(fpArgs);
|
||||
if (shaderFP == nullptr) {
|
||||
SkDEBUGFAIL("unable to convert image shader to fragment processor");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user