Searched refs:peeker (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/libs/hwui/jni/ |
D | ImageDecoder.cpp | 110 sk_sp<NinePatchPeeker> peeker(new NinePatchPeeker); in native_create() local 113 std::move(stream), &result, peeker.get(), in native_create() 143 const bool isNinePatch = peeker->mPatch != nullptr; in native_create() 144 ImageDecoder* decoder = new ImageDecoder(std::move(androidCodec), std::move(peeker), in native_create() 376 auto* peeker = reinterpret_cast<NinePatchPeeker*>(decoder->mPeeker.get()); in ImageDecoder_nDecodeBitmap() local 377 if (peeker->mPatch != nullptr) { in ImageDecoder_nDecodeBitmap() 378 size_t ninePatchArraySize = peeker->mPatch->serializedSize(); in ImageDecoder_nDecodeBitmap() 385 env->SetByteArrayRegion(ninePatchChunk, 0, peeker->mPatchSize, in ImageDecoder_nDecodeBitmap() 386 reinterpret_cast<jbyte*>(peeker->mPatch)); in ImageDecoder_nDecodeBitmap() 389 if (peeker->mHasInsets) { in ImageDecoder_nDecodeBitmap() [all …]
|
D | BitmapFactory.cpp | 233 NinePatchPeeker peeker; in doDecode() local 238 &peeker); in doDecode() 257 if (peeker.mPatch && kRGB_565_SkColorType == prefColorType) { in doDecode() 401 if (peeker.mPatch != NULL) { in doDecode() 403 peeker.scale(scaleX, scaleY, scaledWidth, scaledHeight); in doDecode() 406 size_t ninePatchArraySize = peeker.mPatch->serializedSize(); in doDecode() 417 memcpy(array, peeker.mPatch, peeker.mPatchSize); in doDecode() 422 if (peeker.mHasInsets) { in doDecode() 423 ninePatchInsets = peeker.createNinePatchInsets(env, scale); in doDecode() 471 peeker.getPadding(env, padding); in doDecode()
|
/frameworks/base/libs/hwui/hwui/ |
D | ImageDecoder.h | 37 ImageDecoder(std::unique_ptr<SkAndroidCodec> codec, sk_sp<SkPngChunkReader> peeker = nullptr,
|
D | ImageDecoder.cpp | 47 ImageDecoder::ImageDecoder(std::unique_ptr<SkAndroidCodec> codec, sk_sp<SkPngChunkReader> peeker, in ImageDecoder() argument 50 , mPeeker(std::move(peeker)) in ImageDecoder()
|