summaryrefslogtreecommitdiff
path: root/libs/hwui/jni/ImageDecoder.cpp
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2020-04-21 14:08:32 -0400
committerLeon Scroggins III <scroggo@google.com>2020-04-21 14:27:31 -0400
commit2bcdf6fbdfe551bb66fc4972209c899f875e04f9 (patch)
treefaa575d3bc2da96e1dca17088bf9f465de22fbb6 /libs/hwui/jni/ImageDecoder.cpp
parentc8d49effd583b1c6b052c39e52d71d226c029dd0 (diff)
Use the new name for SkFrontBufferedStream
Bug: skbug.com/10154 Test: CtsGraphicsTestCases The API is being moved to a new file and renamed. Use the new API. Remove an unncessary FIXME and comment in Movie.cpp. The hardcoded 6 is fine, and the ownership is obvious now that we use smart pointers. Change-Id: I79657626ccbd5fe2616d546c617d591928064106
Diffstat (limited to 'libs/hwui/jni/ImageDecoder.cpp')
-rw-r--r--libs/hwui/jni/ImageDecoder.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/hwui/jni/ImageDecoder.cpp b/libs/hwui/jni/ImageDecoder.cpp
index 41d939bd6373..1f4fd230e55e 100644
--- a/libs/hwui/jni/ImageDecoder.cpp
+++ b/libs/hwui/jni/ImageDecoder.cpp
@@ -27,9 +27,9 @@
#include <hwui/ImageDecoder.h>
#include <HardwareBitmapUploader.h>
+#include <FrontBufferedStream.h>
#include <SkAndroidCodec.h>
#include <SkEncodedImageFormat.h>
-#include <SkFrontBufferedStream.h>
#include <SkStream.h>
#include <androidfw/Asset.h>
@@ -187,8 +187,7 @@ static jobject ImageDecoder_nCreateInputStream(JNIEnv* env, jobject /*clazz*/,
}
std::unique_ptr<SkStream> bufferedStream(
- SkFrontBufferedStream::Make(std::move(stream),
- SkCodec::MinBufferedBytesNeeded()));
+ skia::FrontBufferedStream::Make(std::move(stream), SkCodec::MinBufferedBytesNeeded()));
return native_create(env, std::move(bufferedStream), source, preferAnimation);
}