Home
last modified time | relevance | path

Searched refs:peeker (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/jni/
DImageDecoder.cpp122 sk_sp<NinePatchPeeker> peeker(new NinePatchPeeker); in native_create() local
125 std::move(stream), &result, peeker.get(), in native_create()
155 const bool isNinePatch = peeker->mPatch != nullptr; in native_create()
156 ImageDecoder* decoder = new ImageDecoder(std::move(androidCodec), std::move(peeker), in native_create()
409 auto* peeker = reinterpret_cast<NinePatchPeeker*>(decoder->mPeeker.get()); in ImageDecoder_nDecodeBitmap() local
410 if (peeker->mPatch != nullptr) { in ImageDecoder_nDecodeBitmap()
411 size_t ninePatchArraySize = peeker->mPatch->serializedSize(); in ImageDecoder_nDecodeBitmap()
418 env->SetByteArrayRegion(ninePatchChunk, 0, peeker->mPatchSize, in ImageDecoder_nDecodeBitmap()
419 reinterpret_cast<jbyte*>(peeker->mPatch)); in ImageDecoder_nDecodeBitmap()
422 if (peeker->mHasInsets) { in ImageDecoder_nDecodeBitmap()
[all …]
DBitmapFactory.cpp360 NinePatchPeeker peeker; in doDecode() local
365 &peeker); in doDecode()
384 if (peeker.mPatch && kRGB_565_SkColorType == prefColorType) { in doDecode()
536 if (peeker.mPatch != NULL) { in doDecode()
538 peeker.scale(scaleX, scaleY, scaledWidth, scaledHeight); in doDecode()
541 size_t ninePatchArraySize = peeker.mPatch->serializedSize(); in doDecode()
552 memcpy(array, peeker.mPatch, peeker.mPatchSize); in doDecode()
557 if (peeker.mHasInsets) { in doDecode()
558 ninePatchInsets = peeker.createNinePatchInsets(env, scale); in doDecode()
606 peeker.getPadding(env, padding); in doDecode()
/frameworks/base/libs/hwui/hwui/
DImageDecoder.h39 ImageDecoder(std::unique_ptr<SkAndroidCodec> codec, sk_sp<SkPngChunkReader> peeker = nullptr,
DImageDecoder.cpp64 ImageDecoder::ImageDecoder(std::unique_ptr<SkAndroidCodec> codec, sk_sp<SkPngChunkReader> peeker, in ImageDecoder() argument
67 , mPeeker(std::move(peeker)) in ImageDecoder()