/external/skia/tests/ |
D | PixelRefTest.cpp | 17 SkAutoTUnref<SkPixelRef> pixelRef(SkMallocPixelRef::NewAllocate(info, 0, NULL)); in DEF_TEST() local 21 pixelRef->addGenIDChangeListener(SkNEW_ARGS(TestListener, (&count))); in DEF_TEST() 26 pixelRef->notifyPixelsChanged(); in DEF_TEST() 30 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST() 33 pixelRef->notifyPixelsChanged(); in DEF_TEST() 37 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST() 38 pixelRef->addGenIDChangeListener(SkNEW_ARGS(TestListener, (&count))); in DEF_TEST() 39 pixelRef->notifyPixelsChanged(); in DEF_TEST() 43 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST() 44 pixelRef->addGenIDChangeListener(NULL); in DEF_TEST() [all …]
|
D | JpegTest.cpp | 471 SkPixelRef* pixelRef = bitmap.pixelRef(); in DEF_TEST() local 473 bool sizesComputed = (NULL != pixelRef) && pixelRef->getYUV8Planes(yuvSizes, NULL, NULL, NULL); in DEF_TEST() 498 REPORTER_ASSERT(reporter, pixelRef->getYUV8Planes(yuvSizes, planes, rowBytes, NULL)); in DEF_TEST()
|
D | SkResourceCacheTest.cpp | 112 SkPixelRef* cachedPR = cachedBitmap.pixelRef(); in DEF_TEST() 220 SkBitmapCache::Add(src[i].pixelRef(), subset, dst[i], cache); in test_bitmap_notify() 260 … REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, cache)); in DEF_TEST() 282 … REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, cache)); in DEF_TEST()
|
D | PictureTest.cpp | 1291 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST() 1292 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST() 1306 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST() 1307 REPORTER_ASSERT(r, !immut.pixelRef()->unique()); in DEF_TEST() 1311 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST() 1312 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
|
D | CachedDecodingPixelRefTest.cpp | 269 bm.pixelRef()->lockPixels(); in test_newlockdelete()
|
D | ImageDecodingTest.cpp | 434 return bitmap->pixelRef(); in install_pixel_ref()
|
/external/skia/src/gpu/ |
D | SkGr.cpp | 194 SkPixelRef* pixelRef, in stretch_texture_to_next_pot() argument 231 GrTexture* stretched = create_texture_for_bmp(context, optionalKey, rtDesc, pixelRef, NULL, 0); in stretch_texture_to_next_pot() 257 SkAutoTUnref<SkData> data(bm.pixelRef()->refEncodedData()); in load_etc1_texture() 300 return create_texture_for_bmp(ctx, optionalKey, desc, bm.pixelRef(), bytes, 0); in load_etc1_texture() 307 SkPixelRef* pixelRef = bm.pixelRef(); in load_yuv_texture() local 308 if ((NULL == pixelRef) || in load_yuv_texture() 309 (pixelRef->info().width() != bm.info().width()) || in load_yuv_texture() 310 (pixelRef->info().height() != bm.info().height())) { in load_yuv_texture() 319 cachedData.reset(SkYUVPlanesCache::FindAndRef(pixelRef->getGenerationID(), &yuvInfo)); in load_yuv_texture() 330 if (!pixelRef->getYUV8Planes(yuvInfo.fSize, NULL, NULL, NULL)) { in load_yuv_texture() [all …]
|
D | SkGrPixelRef.cpp | 96 SkGrPixelRef* pixelRef = SkNEW_ARGS(SkGrPixelRef, (info, dst)); in copy_to_new_texture_pixelref() local 98 return pixelRef; in copy_to_new_texture_pixelref()
|
/external/skia/src/core/ |
D | SkBitmap.cpp | 441 dst == NULL || (getPixels() == NULL && pixelRef() == NULL)) { in copyPixelsTo() 788 SkPixelRef* pixelRef = fPixelRef->deepCopy(this->colorType(), this->profileType(), &subset); in extractSubset() local 789 if (pixelRef != NULL) { in extractSubset() 794 dst.setPixelRef(pixelRef)->unref(); in extractSubset() 941 if (dst->pixelRef() && dst->pixelRef()->info() == fPixelRef->info()) { in copyTo() 942 dst->pixelRef()->cloneGenID(*fPixelRef); in copyTo() 984 SkASSERT(tmpDst.pixelRef() != NULL); in copyTo() 997 SkPixelRef* dstPixelRef = tmpDst.pixelRef(); in copyTo() 1018 SkPixelRef* pixelRef = fPixelRef->deepCopy(dstCT, dstPT, NULL); in deepCopyTo() local 1019 if (pixelRef) { in deepCopyTo() [all …]
|
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 | 39 if (!(bm.pixelRef())) { in get_bounds_from_bitmap() 116 src.pixelRef()->notifyAddedToCache(); in Add() 217 src.pixelRef()->notifyAddedToCache(); in AddAndRef()
|
D | SkBitmapProcShader.cpp | 194 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan() 195 state.fBitmap->pixelRef()->isLocked()); in shadeSpan() 247 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan16() 248 state.fBitmap->pixelRef()->isLocked()); in shadeSpan16()
|
D | SkBitmapDevice.cpp | 107 SkASSERT(!fBitmap.pixelRef()); in setNewSize() 265 if(bitmap.pixelRef()->getTexture()) { in drawBitmapRect() 268 bitmap.pixelRef()->readPixels(&tmpBitmap, &srcIR); in drawBitmapRect()
|
D | SkPictureRecord.cpp | 858 if (a.pixelRef() == b.pixelRef()) { in equivalent() 863 if (!a.pixelRef() || !b.pixelRef()) { in equivalent() 868 SkAutoTUnref<SkData> encA(a.pixelRef()->refEncodedData()), in equivalent() 869 encB(b.pixelRef()->refEncodedData()); in equivalent()
|
D | SkBitmapProcState.cpp | 237 if (NULL == bm.pixelRef()) { in valid_for_drawing()
|
/external/skia/src/images/ |
D | SkImageDecoder_ktx.cpp | 262 if (!bitmap.pixelRef()) { in onEncode() 265 SkAutoDataUnref data(bitmap.pixelRef()->refEncodedData()); in onEncode()
|
D | SkImageDecoder.cpp | 225 if (SkPixelRef* pr = bm->pixelRef()) { in DecodeFile()
|
/external/skia/src/pdf/ |
D | SkPDFBitmap.cpp | 453 if (bm.pixelRef() && bm.pixelRefOrigin().isZero() && in Create() 454 bm.dimensions() == bm.pixelRef()->info().dimensions()) { in Create() 456 SkAutoTUnref<SkData> data(bm.pixelRef()->refEncodedData()); in Create()
|
/external/skia/tools/ |
D | CopyTilesRenderer.cpp | 98 dst.pixelRef()->readPixels(©, &subset); in render()
|
/external/skia/include/core/ |
D | SkBitmapDevice.h | 112 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
|
D | SkBitmap.h | 379 SkPixelRef* pixelRef() const { return fPixelRef; } in pixelRef() function
|
/external/skia/bench/ |
D | ETCBitmapBench.cpp | 208 SkPixelRef* pr = fBitmap.pixelRef(); in onDraw()
|
/external/skia/src/image/ |
D | SkSurface_Raster.cpp | 127 if (SkBitmapImageGetPixelRef(this->getCachedImage(kNo_Budgeted)) == fBitmap.pixelRef()) { in onCopyOnWrite()
|
D | SkImage_Raster.cpp | 65 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
|
/external/skia/src/utils/ |
D | SkLua.cpp | 1212 setfield_number(L, "genID", bm.pixelRef() ? bm.pixelRef()->getGenerationID() : 0); in lshader_asABitmap()
|