Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index a803c782274a2690af2bcdfa9f8393e4a1c7c440..e73217ea50f4eab94e16f1baedebc021f87e5f3e 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -535,6 +535,9 @@ void* SkBitmap::getAddr(int x, int y) const { |
if (base) { |
base += y * this->rowBytes(); |
switch (this->colorType()) { |
+ case kRGBA_F16_SkColorType: |
+ base += x << 3; |
+ break; |
case kRGBA_8888_SkColorType: |
case kBGRA_8888_SkColorType: |
base += x << 2; |