/external/skia/tests/ |
D | PixelRefTest.cpp | 72 SkAutoTUnref<SkPixelRef> pixelRef(SkMallocPixelRef::NewAllocate(info, 0, nullptr)); in DEF_TEST() local 76 pixelRef->addGenIDChangeListener(new TestListener(&count)); in DEF_TEST() 81 pixelRef->notifyPixelsChanged(); in DEF_TEST() 85 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST() 88 pixelRef->notifyPixelsChanged(); in DEF_TEST() 92 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST() 93 pixelRef->addGenIDChangeListener(new TestListener(&count)); in DEF_TEST() 94 pixelRef->notifyPixelsChanged(); in DEF_TEST() 98 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST() 99 pixelRef->addGenIDChangeListener(nullptr); in DEF_TEST() [all …]
|
D | SkResourceCacheTest.cpp | 55 SkPixelRef* cachedPR = cachedBitmap.pixelRef(); in DEF_TEST() 163 SkBitmapCache::Add(src[i].pixelRef(), subset, dst[i], cache); in test_bitmap_notify() 213 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, in testBitmapCache_discarded_bitmap() 239 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, in testBitmapCache_discarded_bitmap()
|
D | PictureTest.cpp | 1353 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST() 1354 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST() 1368 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST() 1369 REPORTER_ASSERT(r, !immut.pixelRef()->unique()); in DEF_TEST() 1373 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST() 1374 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
|
/external/skia/src/gpu/ |
D | GrImageIDTextureAdjuster.cpp | 41 GrInstallBitmapUniqueKeyInvalidator(copyKey, fBmp->pixelRef()); in didCacheCopy() 80 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset); in GrBitmapTextureMaker() 97 GrInstallBitmapUniqueKeyInvalidator(fOriginalKey, fBitmap.pixelRef()); in refOriginalTexture() 109 GrInstallBitmapUniqueKeyInvalidator(copyKey, fBitmap.pixelRef()); in didCacheCopy()
|
D | SkGr.cpp | 190 SkPixelRef* pixelRef = bm.pixelRef(); in create_texture_from_yuv() local 191 if ((nullptr == pixelRef) || in create_texture_from_yuv() 192 (pixelRef->info().width() != bm.info().width()) || in create_texture_from_yuv() 193 (pixelRef->info().height() != bm.info().height())) { in create_texture_from_yuv() 197 PixelRef_GrYUVProvider provider(pixelRef); in create_texture_from_yuv() 203 SkAutoTUnref<SkData> data(bm.pixelRef()->refEncodedData()); in load_etc1_texture() 275 void GrInstallBitmapUniqueKeyInvalidator(const GrUniqueKey& key, SkPixelRef* pixelRef) { in GrInstallBitmapUniqueKeyInvalidator() argument 285 pixelRef->addGenIDChangeListener(new Invalidator(key)); in GrInstallBitmapUniqueKeyInvalidator()
|
D | SkGrPixelRef.cpp | 94 SkGrPixelRef* pixelRef = new SkGrPixelRef(info, dst); in copy_to_new_texture_pixelref() local 96 return pixelRef; in copy_to_new_texture_pixelref()
|
D | SkGrPriv.h | 44 void GrInstallBitmapUniqueKeyInvalidator(const GrUniqueKey& key, SkPixelRef* pixelRef);
|
/external/skia/src/image/ |
D | SkImage_Raster.cpp | 79 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef() 88 if (bm.pixelRef()->isPreLocked()) { in SkImage_Raster() 97 return fBitmap.pixelRef() && fBitmap.pixelRef()->isLazyGenerated(); in onIsLazyGenerated() 154 SkPixelRef* pr = fBitmap.pixelRef(); in onRefEncoded() 289 bitmap->setPixelRef(fBitmap.pixelRef(), fBitmap.pixelRefOrigin()); in onAsLegacyBitmap()
|
D | SkSurface_Raster.cpp | 125 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onNewImageSnapshot() 139 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onRestoreBackingMutability() 148 if (SkBitmapImageGetPixelRef(cached) == fBitmap.pixelRef()) { in onCopyOnWrite()
|
D | SkImage_Gpu.cpp | 66 dst->pixelRef()->setImmutableWithID(this->uniqueID()); in getROPixels() 77 bitmap->pixelRef()->setImmutableWithID(this->uniqueID()); in asBitmapForImageFilters()
|
D | SkImage.cpp | 282 SkPixelRef* pr = bm.pixelRef(); in NewFromBitmap()
|
/external/skia/src/core/ |
D | SkBitmap.cpp | 747 SkPixelRef* pixelRef = fPixelRef->deepCopy(this->colorType(), this->profileType(), &subset); in extractSubset() local 748 if (pixelRef != nullptr) { in extractSubset() 753 dst.setPixelRef(pixelRef)->unref(); in extractSubset() 858 if (dst->pixelRef() && dst->pixelRef()->info() == fPixelRef->info()) { in copyTo() 859 dst->pixelRef()->cloneGenID(*fPixelRef); in copyTo() 906 SkPixelRef* dstPixelRef = tmpDst.pixelRef(); in copyTo() 927 SkPixelRef* pixelRef = fPixelRef->deepCopy(dstCT, dstPT, nullptr); in deepCopyTo() local 928 if (pixelRef) { in deepCopyTo() 933 SkASSERT(fPixelRef->info() == pixelRef->info()); in deepCopyTo() 934 pixelRef->cloneGenID(*fPixelRef); in deepCopyTo() [all …]
|
D | SkBitmapProvider.cpp | 29 if (nullptr == fBitmap.pixelRef()) { in validForDrawing() 75 fBitmap.pixelRef()->notifyAddedToCache(); in notifyAddedToCache()
|
D | SkWriteBuffer.cpp | 186 SkPixelRef* pixelRef = bitmap.pixelRef(); in writeBitmap() local 187 if (pixelRef) { in writeBitmap() 189 SkAutoDataUnref existingData(pixelRef->refEncodedData()); in writeBitmap()
|
D | SkBitmapCache.cpp | 40 if (!(bm.pixelRef())) { in get_bounds_from_bitmap() 143 return fBitmap.pixelRef()->diagnostic_only_getDiscardable(); in diagnostic_only_getDiscardable() 303 src.pixelRef()->notifyAddedToCache(); in AddAndRef()
|
D | SkBitmapDevice.cpp | 123 SkASSERT(!fBitmap.pixelRef()); in setNewSize() 288 if(bitmap.pixelRef()->getTexture()) { in drawBitmapRect() 291 bitmap.pixelRef()->readPixels(&tmpBitmap, kN32_SkColorType, &srcIR); in drawBitmapRect()
|
D | SkPictureRecord.cpp | 793 if (a.pixelRef() == b.pixelRef()) { in equivalent() 798 if (!a.pixelRef() || !b.pixelRef()) { in equivalent() 803 SkAutoTUnref<SkData> encA(a.pixelRef()->refEncodedData()), in equivalent() 804 encB(b.pixelRef()->refEncodedData()); in equivalent()
|
D | SkImageCacherator.cpp | 138 bitmap->pixelRef()->setImmutableWithID(fUniqueID); in tryLockAsBitmap() 180 bitmap->pixelRef()->setImmutableWithID(fUniqueID); in lockAsBitmap()
|
D | SkSpecialSurface.cpp | 97 return new SkSpecialSurface_Raster(proxy, bm.pixelRef(), subset, props); in NewFromBitmap()
|
D | SkSpecialImage.cpp | 180 if (bm.pixelRef()->isPreLocked()) { in SkSpecialImage_Raster()
|
/external/skia/src/images/ |
D | SkImageDecoder_ktx.cpp | 263 if (!bitmap.pixelRef()) { in onEncode() 266 SkAutoDataUnref data(bitmap.pixelRef()->refEncodedData()); in onEncode()
|
D | SkImageDecoder.cpp | 155 if (SkPixelRef* pr = bm->pixelRef()) { in DecodeFile()
|
/external/skia/gm/ |
D | ninepatchstretch.cpp | 73 if (nullptr == fBitmap.pixelRef()) { in onDraw()
|
/external/skia/src/android/ |
D | SkBitmapRegionCodec.cpp | 133 SkPixelRef* pr = SkRef(bitmap->pixelRef()); in decodeRegion()
|
/external/skia/include/core/ |
D | SkBitmapDevice.h | 133 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
|