aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapDevice.cpp
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2018-07-20 11:48:38 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-24 14:53:25 +0000
commit81ecdbb7ff36afef9091c1b524baafe67381e70d (patch)
treec9d2a2ace6fecc88bf85e1377c2eeb8d8d007a5a /src/core/SkBitmapDevice.cpp
parentab98509717e1d20b8171a631d2923f47ce26fc0e (diff)
Clean up bitmap path
Change-Id: If149194fd86f14bea289ad68262ea99cbbc398b6 Reviewed-on: https://skia-review.googlesource.com/142817 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'src/core/SkBitmapDevice.cpp')
-rw-r--r--src/core/SkBitmapDevice.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp
index cb169dca87..94a4ddcd0d 100644
--- a/src/core/SkBitmapDevice.cpp
+++ b/src/core/SkBitmapDevice.cpp
@@ -572,7 +572,7 @@ void SkBitmapDevice::drawPosText(const void* text, size_t len, const SkScalar xp
}
void SkBitmapDevice::drawGlyphRunList(SkGlyphRunList* glyphRunList) {
-#ifdef SK_SUPPORT_LEGACY_TEXT_BLOB
+#if defined(SK_SUPPORT_LEGACY_TEXT_BLOB)
auto blob = glyphRunList->blob();
if (blob == nullptr) {
@@ -583,7 +583,8 @@ void SkBitmapDevice::drawGlyphRunList(SkGlyphRunList* glyphRunList) {
this->drawTextBlob(blob, origin.x(), origin.y(), paint);
}
#else
- glyphRunList->temporaryShuntToDrawPosText(this, glyphRunList->origin());
+ SkBitmapDeviceFilteredSurfaceProps props(fBitmap, glyphRunList->paint(), fSurfaceProps);
+ LOOP_TILER( drawGlyphRunList(glyphRunList, &props()), nullptr )
#endif
}