Home
last modified time | relevance | path

Searched refs:pixelRef (Results 1 – 25 of 26) sorted by relevance

12

/external/skia/tests/
DPixelRefTest.cpp17 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 …]
DJpegTest.cpp471 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()
DSkResourceCacheTest.cpp112 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()
DPictureTest.cpp1291 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()
DCachedDecodingPixelRefTest.cpp269 bm.pixelRef()->lockPixels(); in test_newlockdelete()
DImageDecodingTest.cpp434 return bitmap->pixelRef(); in install_pixel_ref()
/external/skia/src/gpu/
DSkGr.cpp194 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 …]
DSkGrPixelRef.cpp96 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/
DSkBitmap.cpp441 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 …]
DSkWriteBuffer.cpp186 SkPixelRef* pixelRef = bitmap.pixelRef(); in writeBitmap() local
187 if (pixelRef) { in writeBitmap()
189 SkAutoDataUnref existingData(pixelRef->refEncodedData()); in writeBitmap()
DSkBitmapCache.cpp39 if (!(bm.pixelRef())) { in get_bounds_from_bitmap()
116 src.pixelRef()->notifyAddedToCache(); in Add()
217 src.pixelRef()->notifyAddedToCache(); in AddAndRef()
DSkBitmapProcShader.cpp194 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()
DSkBitmapDevice.cpp107 SkASSERT(!fBitmap.pixelRef()); in setNewSize()
265 if(bitmap.pixelRef()->getTexture()) { in drawBitmapRect()
268 bitmap.pixelRef()->readPixels(&tmpBitmap, &srcIR); in drawBitmapRect()
DSkPictureRecord.cpp858 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()
DSkBitmapProcState.cpp237 if (NULL == bm.pixelRef()) { in valid_for_drawing()
/external/skia/src/images/
DSkImageDecoder_ktx.cpp262 if (!bitmap.pixelRef()) { in onEncode()
265 SkAutoDataUnref data(bitmap.pixelRef()->refEncodedData()); in onEncode()
DSkImageDecoder.cpp225 if (SkPixelRef* pr = bm->pixelRef()) { in DecodeFile()
/external/skia/src/pdf/
DSkPDFBitmap.cpp453 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/
DCopyTilesRenderer.cpp98 dst.pixelRef()->readPixels(&copy, &subset); in render()
/external/skia/include/core/
DSkBitmapDevice.h112 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
DSkBitmap.h379 SkPixelRef* pixelRef() const { return fPixelRef; } in pixelRef() function
/external/skia/bench/
DETCBitmapBench.cpp208 SkPixelRef* pr = fBitmap.pixelRef(); in onDraw()
/external/skia/src/image/
DSkSurface_Raster.cpp127 if (SkBitmapImageGetPixelRef(this->getCachedImage(kNo_Budgeted)) == fBitmap.pixelRef()) { in onCopyOnWrite()
DSkImage_Raster.cpp65 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
/external/skia/src/utils/
DSkLua.cpp1212 setfield_number(L, "genID", bm.pixelRef() ? bm.pixelRef()->getGenerationID() : 0); in lshader_asABitmap()

12