aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkDevice.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-04-13 15:50:01 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-16 21:11:10 +0000
commitd234afdc2e562d395925ca3ac8294398608271a6 (patch)
treedf395701b78e38fc3ddbab5c308cab8af79ea27e /src/core/SkDevice.cpp
parentf7621cb5bb4ee181d557aeb6fa557819daba5fd2 (diff)
Remove SkPaint::kGenA8FromLCD_Flag.
The original intent of this flag is now handled by SkPixelGeomety on SkSurfaceProps on SkSurface. BUG=skia:7515 Change-Id: I54bb1be072b5b5b2164a59196bfeacac254823c7 Reviewed-on: https://skia-review.googlesource.com/121346 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Herb Derby <herb@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'src/core/SkDevice.cpp')
-rw-r--r--src/core/SkDevice.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp
index 96a7e8dbfe..35cfc9ab71 100644
--- a/src/core/SkDevice.cpp
+++ b/src/core/SkDevice.cpp
@@ -156,8 +156,6 @@ void SkBaseDevice::drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
continue;
}
- runPaint.setFlags(this->filterTextFlags(runPaint));
-
switch (it.positioning()) {
case SkTextBlob::kDefault_Positioning:
this->drawText(it.glyphs(), textLen, x + offset.x(), y + offset.y(), runPaint);
@@ -526,23 +524,6 @@ void SkBaseDevice::drawTextRSXform(const void* text, size_t len,
//////////////////////////////////////////////////////////////////////////////////////////
-uint32_t SkBaseDevice::filterTextFlags(const SkPaint& paint) const {
- uint32_t flags = paint.getFlags();
-
- if (!paint.isLCDRenderText() || !paint.isAntiAlias()) {
- return flags;
- }
-
- if (kUnknown_SkPixelGeometry == fSurfaceProps.pixelGeometry()
- || this->onShouldDisableLCD(paint)) {
-
- flags &= ~SkPaint::kLCDRenderText_Flag;
- flags |= SkPaint::kGenA8FromLCD_Flag;
- }
-
- return flags;
-}
-
sk_sp<SkSurface> SkBaseDevice::makeSurface(SkImageInfo const&, SkSurfaceProps const&) {
return nullptr;
}