summaryrefslogtreecommitdiff
path: root/libs/hwui/SkiaCanvas.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2018-05-07 08:12:07 -0700
committer John Reck <jreck@google.com> 2018-05-09 11:39:37 -0700
commite170fb6686c3e88cee6e32f4e3eb12fcf9bfe931 (patch)
treebf0ccbbcd2f89ccb468b216e14670451fedc3221 /libs/hwui/SkiaCanvas.cpp
parent33f4f1cb1645635f8b5c369e1dddda84e0396c34 (diff)
A better HW Bitmap uploader
Move all HW bitmap upload operations off of RenderThread. Ensure EGL context outlives all upload requests Bug: 79250950 Test: builds, boots, systrace is good, CTS bitmap tests pass Change-Id: I5ace6c516d33b1afdf1a407cd8b183f6b60c22c1
Diffstat (limited to 'libs/hwui/SkiaCanvas.cpp')
-rw-r--r--libs/hwui/SkiaCanvas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/SkiaCanvas.cpp b/libs/hwui/SkiaCanvas.cpp
index 6bd12f4c7ff3..7b41f89605d2 100644
--- a/libs/hwui/SkiaCanvas.cpp
+++ b/libs/hwui/SkiaCanvas.cpp
@@ -736,8 +736,8 @@ void SkiaCanvas::drawGlyphs(ReadGlyphFunc glyphFunc, int count, const SkPaint& p
SkASSERT(paintCopy.getTextEncoding() == SkPaint::kGlyphID_TextEncoding);
// Stroke with a hairline is drawn on HW with a fill style for compatibility with Android O and
// older.
- if (!mCanvasOwned && sApiLevel <= 27 && paintCopy.getStrokeWidth() <= 0
- && paintCopy.getStyle() == SkPaint::kStroke_Style) {
+ if (!mCanvasOwned && sApiLevel <= 27 && paintCopy.getStrokeWidth() <= 0 &&
+ paintCopy.getStyle() == SkPaint::kStroke_Style) {
paintCopy.setStyle(SkPaint::kFill_Style);
}