SkBaseDevice::drawAtlas doesn't antialias either, so remove fallback
Also, fix the trace marker name. Bug: skia:8903 Change-Id: Ibf43efbdf73e406482ed4442639e22aec1d93e9f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/203058 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
d37e1b0fad
commit
ddba4e646a
@ -1525,12 +1525,7 @@ void SkGpuDevice::drawAtlas(const SkImage* atlas, const SkRSXform xform[],
|
||||
const SkRect texRect[], const SkColor colors[], int count,
|
||||
SkBlendMode mode, const SkPaint& paint) {
|
||||
ASSERT_SINGLE_OWNER
|
||||
if (paint.isAntiAlias()) {
|
||||
this->INHERITED::drawAtlas(atlas, xform, texRect, colors, count, mode, paint);
|
||||
return;
|
||||
}
|
||||
|
||||
GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawText", fContext.get());
|
||||
GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawAtlas", fContext.get());
|
||||
|
||||
SkPaint p(paint);
|
||||
p.setShader(atlas->makeShader());
|
||||
|
Loading…
Reference in New Issue
Block a user