summaryrefslogtreecommitdiffstats
path: root/media/jni/android_media_MediaMetadataRetriever.cpp
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2014-08-07 17:03:17 -0400
committerMike Reed <reed@google.com>2014-08-14 09:57:06 -0400
commit021a3443c6f86ece7f59fa9291cc0ba70ba71b1f (patch)
tree164e625b77851907271cf89f647ff463ea4df436 /media/jni/android_media_MediaMetadataRetriever.cpp
parent45b851559c7ee7ec28c0085fd81de487dcb60c76 (diff)
downloadframeworks_base-021a3443c6f86ece7f59fa9291cc0ba70ba71b1f.zip
frameworks_base-021a3443c6f86ece7f59fa9291cc0ba70ba71b1f.tar.gz
frameworks_base-021a3443c6f86ece7f59fa9291cc0ba70ba71b1f.tar.bz2
SkBitmap::Config is deprecated
Change-Id: I0bbd929074474ae3c1d497c2f645417e4876d9e3
Diffstat (limited to 'media/jni/android_media_MediaMetadataRetriever.cpp')
-rw-r--r--media/jni/android_media_MediaMetadataRetriever.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/jni/android_media_MediaMetadataRetriever.cpp b/media/jni/android_media_MediaMetadataRetriever.cpp
index fbe5340..ac8a929 100644
--- a/media/jni/android_media_MediaMetadataRetriever.cpp
+++ b/media/jni/android_media_MediaMetadataRetriever.cpp
@@ -33,6 +33,7 @@
#include "android_media_Utils.h"
#include "android_util_Binder.h"
+#include "android/graphics/GraphicsJNI.h"
using namespace android;
@@ -255,7 +256,7 @@ static jobject android_media_MediaMetadataRetriever_getFrameAtTime(JNIEnv *env,
jobject config = env->CallStaticObjectMethod(
fields.configClazz,
fields.createConfigMethod,
- SkBitmap::kRGB_565_Config);
+ GraphicsJNI::colorTypeToLegacyBitmapConfig(kRGB_565_SkColorType));
uint32_t width, height;
bool swapWidthAndHeight = false;