HomeSort by relevance Sort by last modified time
    Searched refs:pixelRef (Results 1 - 25 of 46) sorted by null

1 2

  /external/skia/tests/
PixelRefTest.cpp 72 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0);
76 pixelRef->addGenIDChangeListener(new TestListener(&count));
79 // No one has looked at our pixelRef's generation ID, so invalidating it doesn't make sense.
81 pixelRef->notifyPixelsChanged();
85 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID());
88 pixelRef->notifyPixelsChanged();
92 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID());
93 pixelRef->addGenIDChangeListener(new TestListener(&count));
94 pixelRef->notifyPixelsChanged();
98 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID())
    [all...]
PictureTest.cpp 713 REPORTER_ASSERT(r, mut.pixelRef()->unique());
714 REPORTER_ASSERT(r, immut.pixelRef()->unique());
728 REPORTER_ASSERT(r, mut.pixelRef()->unique());
729 REPORTER_ASSERT(r, !immut.pixelRef()->unique());
733 REPORTER_ASSERT(r, mut.pixelRef()->unique());
734 REPORTER_ASSERT(r, immut.pixelRef()->unique());
  /external/skqp/tests/
PixelRefTest.cpp 72 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0);
76 pixelRef->addGenIDChangeListener(new TestListener(&count));
79 // No one has looked at our pixelRef's generation ID, so invalidating it doesn't make sense.
81 pixelRef->notifyPixelsChanged();
85 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID());
88 pixelRef->notifyPixelsChanged();
92 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID());
93 pixelRef->addGenIDChangeListener(new TestListener(&count));
94 pixelRef->notifyPixelsChanged();
98 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID())
    [all...]
PictureTest.cpp 713 REPORTER_ASSERT(r, mut.pixelRef()->unique());
714 REPORTER_ASSERT(r, immut.pixelRef()->unique());
728 REPORTER_ASSERT(r, mut.pixelRef()->unique());
729 REPORTER_ASSERT(r, !immut.pixelRef()->unique());
733 REPORTER_ASSERT(r, mut.pixelRef()->unique());
734 REPORTER_ASSERT(r, immut.pixelRef()->unique());
  /external/skia/src/gpu/
GrBitmapTextureMaker.cpp 29 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset);
64 GrInstallBitmapUniqueKeyInvalidator(fOriginalKey, fBitmap.pixelRef());
88 GrInstallBitmapUniqueKeyInvalidator(fOriginalKey, fBitmap.pixelRef());
109 GrInstallBitmapUniqueKeyInvalidator(copyKey, fBitmap.pixelRef());
  /external/skqp/src/gpu/
GrBitmapTextureMaker.cpp 29 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset);
64 GrInstallBitmapUniqueKeyInvalidator(fOriginalKey, fBitmap.pixelRef());
88 GrInstallBitmapUniqueKeyInvalidator(fOriginalKey, fBitmap.pixelRef());
109 GrInstallBitmapUniqueKeyInvalidator(copyKey, fBitmap.pixelRef());
SkGr.cpp 101 void GrInstallBitmapUniqueKeyInvalidator(const GrUniqueKey& key, SkPixelRef* pixelRef) {
111 pixelRef->addGenIDChangeListener(new Invalidator(key));
219 GrMakeKeyFromImageID(&originalKey, bitmap.pixelRef()->getGenerationID(), subset);
235 GrInstallBitmapUniqueKeyInvalidator(originalKey, bitmap.pixelRef());
  /frameworks/base/libs/hwui/hwui/
Bitmap.cpp 126 auto pixelRef = (SkPixelRef*)context;
127 pixelRef->unref();
130 sk_sp<Bitmap> Bitmap::createFrom(const SkImageInfo& info, SkPixelRef& pixelRef) {
131 pixelRef.ref();
132 return sk_sp<Bitmap>(new Bitmap((void*)pixelRef.pixels(), (void*)&pixelRef, FreePixelRef, info,
133 pixelRef.rowBytes()));
300 sk_sp<SkPixelRef> pixelRef = sk_ref_sp(outBitmap->pixelRef());
302 outBitmap->setPixelRef(std::move(pixelRef), 0, 0)
    [all...]
  /frameworks/base/libs/hwui/tests/unit/
SkiaBehaviorTests.cpp 52 EXPECT_EQ(origBitmap.pixelRef(), bitmap.pixelRef());
  /external/skia/src/image/
SkSurface_Raster.cpp 139 if (SkPixelRef* pr = fBitmap.pixelRef()) {
157 if (SkPixelRef* pr = fBitmap.pixelRef()) {
166 if (SkBitmapImageGetPixelRef(cached.get()) == fBitmap.pixelRef()) {
SkImage_Raster.cpp 32 SkASSERT(bm.pixelRef());
33 SkISize dim = SkISize::Make(bm.pixelRef()->width(), bm.pixelRef()->height());
98 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); }
329 // pixelref since the caller might call setImmutable() themselves
334 bitmap->setPixelRef(sk_ref_sp(fBitmap.pixelRef()), origin.x(), origin.y());
  /external/skqp/src/image/
SkSurface_Raster.cpp 134 if (SkPixelRef* pr = fBitmap.pixelRef()) {
148 if (SkPixelRef* pr = fBitmap.pixelRef()) {
157 if (SkBitmapImageGetPixelRef(cached.get()) == fBitmap.pixelRef()) {
SkImage_Raster.cpp 32 SkASSERT(bm.pixelRef());
33 SkISize dim = SkISize::Make(bm.pixelRef()->width(), bm.pixelRef()->height());
98 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); }
334 // pixelref since the caller might call setImmutable() themselves
339 bitmap->setPixelRef(sk_ref_sp(fBitmap.pixelRef()), origin.x(), origin.y());
  /external/skia/gm/
imagemagnifier.cpp 64 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0);
matrixconvolution.cpp 53 fBitmap.setPixelRef(sk_ref_sp(n32Bitmap.pixelRef()), 0, 0);
ninepatchstretch.cpp 70 if (nullptr == fBitmap.pixelRef()) {
  /external/skqp/gm/
imagemagnifier.cpp 64 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0);
matrixconvolution.cpp 53 fBitmap.setPixelRef(sk_ref_sp(n32Bitmap.pixelRef()), 0, 0);
ninepatchstretch.cpp 70 if (nullptr == fBitmap.pixelRef()) {
  /external/skia/src/core/
SkBitmapCache.cpp 30 This function finds the bounds of the bitmap *within its pixelRef*.
31 If the bitmap lacks a pixelRef, it will return an empty rect, since
36 if (!(bm.pixelRef())) {
137 // We need an ID to return with the bitmap/pixelref.
229 SkBitmapCache_setImmutableWithID(bitmap->pixelRef(), fPrUniqueID);
416 src.pixelRef()->notifyAddedToCache();
SkSpecialSurface.cpp 99 return sk_make_sp<SkSpecialSurface_Raster>(bm.info(), sk_ref_sp(bm.pixelRef()), subset, props);
  /external/skqp/src/core/
SkBitmapCache.cpp 30 This function finds the bounds of the bitmap *within its pixelRef*.
31 If the bitmap lacks a pixelRef, it will return an empty rect, since
36 if (!(bm.pixelRef())) {
137 // We need an ID to return with the bitmap/pixelref.
229 SkBitmapCache_setImmutableWithID(bitmap->pixelRef(), fPrUniqueID);
416 src.pixelRef()->notifyAddedToCache();
SkSpecialSurface.cpp 99 return sk_make_sp<SkSpecialSurface_Raster>(bm.info(), sk_ref_sp(bm.pixelRef()), subset, props);
  /external/skia/include/core/
SkBitmap.h 118 Maybe be less than pixelRef().width(). Will not exceed pixelRef().width() less
127 Maybe be less than pixelRef().height(). Will not exceed pixelRef().height() less
711 SkPixelRef* pixelRef() const { return fPixelRef.get(); }
726 /** Replaces pixelRef and origin in SkBitmap. dx and dy specify the offset
735 @param pixelRef SkPixelRef describing pixel address and rowBytes()
739 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy);
    [all...]
  /external/skqp/include/core/
SkBitmap.h 118 Maybe be less than pixelRef().width(). Will not exceed pixelRef().width() less
127 Maybe be less than pixelRef().height(). Will not exceed pixelRef().height() less
721 SkPixelRef* pixelRef() const { return fPixelRef.get(); }
736 /** Replaces pixelRef and origin in SkBitmap. dx and dy specify the offset
745 @param pixelRef SkPixelRef describing pixel address and rowBytes()
749 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy);
    [all...]

Completed in 1095 milliseconds

1 2