summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2015-05-07 19:28:29 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-07 19:28:31 +0000
commit7b753cf12e471e15a4b1c1b710393b40502a8bb7 (patch)
treeac1f9770d0bbd14548f96dfbc8d62858dfeee749 /core
parentd11ad51d119aaa826d988fbc7f6c626afff00983 (diff)
parent2a94a10bec186d832c2b95675cb6dc27b012c2d0 (diff)
downloadframeworks_base-7b753cf12e471e15a4b1c1b710393b40502a8bb7.zip
frameworks_base-7b753cf12e471e15a4b1c1b710393b40502a8bb7.tar.gz
frameworks_base-7b753cf12e471e15a4b1c1b710393b40502a8bb7.tar.bz2
Merge "Update the rowBytes when reconfiguring to match the new imageInfo." into mnc-dev
Diffstat (limited to 'core')
-rwxr-xr-xcore/jni/android/graphics/Bitmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/Bitmap.cpp b/core/jni/android/graphics/Bitmap.cpp
index 9babe82..2785c48 100755
--- a/core/jni/android/graphics/Bitmap.cpp
+++ b/core/jni/android/graphics/Bitmap.cpp
@@ -224,7 +224,7 @@ void Bitmap::reconfigure(const SkImageInfo& info, size_t rowBytes,
}
void Bitmap::reconfigure(const SkImageInfo& info) {
- reconfigure(info, mPixelRef->rowBytes(), mPixelRef->colorTable());
+ reconfigure(info, info.minRowBytes(), nullptr);
}
void Bitmap::detachFromJava() {