summaryrefslogtreecommitdiff
path: root/libs/hwui
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2020-07-22 12:40:06 -0400
committerLeon Scroggins III <scroggo@google.com>2020-07-22 13:00:12 -0400
commitf663182d524c7fb7e02ab8a99b6cc79de7cc952d (patch)
treebfdc699b260d3b1ae4f5a30542d61de14fcd7a3c /libs/hwui
parent20b012282e0c3d94b5c0aa799cdda065f2df06db (diff)
Update graphics language to comply with Android’s inclusive language guidance
Bug: 161896447 Test: make See https://source.android.com/setup/contribute/respectful-code for reference Change-Id: I57b81fb5fd2177fbf96f9cc900097f7da1955fca
Diffstat (limited to 'libs/hwui')
-rw-r--r--libs/hwui/hwui/Bitmap.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/hwui/hwui/Bitmap.cpp b/libs/hwui/hwui/Bitmap.cpp
index c21bdca3db77..7352061bd2cd 100644
--- a/libs/hwui/hwui/Bitmap.cpp
+++ b/libs/hwui/hwui/Bitmap.cpp
@@ -182,11 +182,8 @@ static SkImageInfo validateAlpha(const SkImageInfo& info) {
void Bitmap::reconfigure(const SkImageInfo& newInfo, size_t rowBytes) {
mInfo = validateAlpha(newInfo);
- // Dirty hack is dirty
- // TODO: Figure something out here, Skia's current design makes this
- // really hard to work with. Skia really, really wants immutable objects,
- // but with the nested-ref-count hackery going on that's just not
- // feasible without going insane trying to figure it out
+ // TODO: Skia intends for SkPixelRef to be immutable, but this method
+ // modifies it. Find another way to support reusing the same pixel memory.
this->android_only_reset(mInfo.width(), mInfo.height(), rowBytes);
}