From 0ea09a4f4a53019a26b8a25806cff7bb94e9c853 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Fri, 25 Jan 2019 13:04:14 -0500 Subject: [PATCH] IWYU Trying to land https://skia-review.googlesource.com/c/skia/+/185460 Test: make Change-Id: Ia1dd2fb6911d3e562e9c68e8ad03136f96b2d7c0 --- core/jni/android/graphics/Paint.cpp | 1 + libs/hwui/hwui/PaintImpl.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/jni/android/graphics/Paint.cpp b/core/jni/android/graphics/Paint.cpp index dd7633ac62697..acb34ba3dfec2 100644 --- a/core/jni/android/graphics/Paint.cpp +++ b/core/jni/android/graphics/Paint.cpp @@ -29,6 +29,7 @@ #include "SkBlurDrawLooper.h" #include "SkColorFilter.h" #include "SkFont.h" +#include "SkFontMetrics.h" #include "SkFontTypes.h" #include "SkMaskFilter.h" #include "SkPath.h" diff --git a/libs/hwui/hwui/PaintImpl.cpp b/libs/hwui/hwui/PaintImpl.cpp index d2903f08af155..2f2d575bca29c 100644 --- a/libs/hwui/hwui/PaintImpl.cpp +++ b/libs/hwui/hwui/PaintImpl.cpp @@ -99,7 +99,7 @@ void Paint::setAntiAlias(bool aa) { ////////////////// Java flags compatibility ////////////////// -/* Flags are tricky. Java has its own idea of the "paint" flags, but they don't really +/* Flags are tricky. Java has its own idea of the "paint" flags, but they don't really match up with skia anymore, so we have to do some shuffling in get/set flags() 3 flags apply to SkPaint (antialias, dither, filter -> enum)