aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-30 23:27:42 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-30 23:27:42 +0000
commit1145116447a46710a65e3a5deabb7d7c752af5ea (patch)
treee2ad96b82fadbfef74b97812a19b0c2b0ae4e35f
parent9705e6bf75e14e26b4ec56da75000e47cf4da1b0 (diff)
parentde4dc2b6192f0b632ea7f37af0ab38fad7f82b90 (diff)
downloadskia-android14-release.tar.gz
Change-Id: Ieda651631d867ec9ad5e96b82d54ce0b9e566374
-rw-r--r--client_utils/android/BitmapRegionDecoder.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/client_utils/android/BitmapRegionDecoder.cpp b/client_utils/android/BitmapRegionDecoder.cpp
index 110dc0fe23..c5262b886a 100644
--- a/client_utils/android/BitmapRegionDecoder.cpp
+++ b/client_utils/android/BitmapRegionDecoder.cpp
@@ -79,10 +79,6 @@ bool BitmapRegionDecoder::decodeRegion(SkBitmap* bitmap, BRDAllocator* allocator
}
SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset);
- if (fCodec->getInfo().colorType() == kGray_8_SkColorType) {
- dstColorType = kGray_8_SkColorType;
- }
-
// Create the image info for the decode
SkAlphaType dstAlphaType = fCodec->computeOutputAlphaType(requireUnpremul);
SkImageInfo decodeInfo =