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

1 2

  /external/skia/tests/
PixelRefTest.cpp 17 SkAutoTUnref<SkPixelRef> pixelRef(SkMallocPixelRef::NewAllocate(info, 0, NULL));
21 pixelRef->addGenIDChangeListener(SkNEW_ARGS(TestListener, (&count)));
24 // No one has looked at our pixelRef's generation ID, so invalidating it doesn't make sense.
26 pixelRef->notifyPixelsChanged();
30 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID());
33 pixelRef->notifyPixelsChanged();
37 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID());
38 pixelRef->addGenIDChangeListener(SkNEW_ARGS(TestListener, (&count)));
39 pixelRef->notifyPixelsChanged();
43 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID())
    [all...]
SkResourceCacheTest.cpp 112 SkPixelRef* cachedPR = cachedBitmap.pixelRef();
204 src[i].reset(); // delete the underlying pixelref, which *should* remove us from the cache
220 SkBitmapCache::Add(src[i].pixelRef(), subset, dst[i], cache);
233 src[i].reset(); // delete the underlying pixelref, which *should* remove us from the cache
260 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, cache));
282 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, cache));
PictureTest.cpp     [all...]
JpegTest.cpp 471 SkPixelRef* pixelRef = bitmap.pixelRef();
473 bool sizesComputed = (NULL != pixelRef) && pixelRef->getYUV8Planes(yuvSizes, NULL, NULL, NULL);
498 REPORTER_ASSERT(reporter, pixelRef->getYUV8Planes(yuvSizes, planes, rowBytes, NULL));
  /frameworks/base/native/graphics/jni/
bitmap.cpp 65 SkPixelRef* pixelRef = GraphicsJNI::refSkPixelRef(env, jbitmap);
66 if (!pixelRef) {
70 pixelRef->lockPixels();
71 void* addr = pixelRef->pixels();
73 pixelRef->unlockPixels();
74 pixelRef->unref();
89 SkPixelRef* pixelRef = GraphicsJNI::refSkPixelRef(env, jbitmap);
90 if (!pixelRef) {
98 pixelRef->notifyPixelsChanged();
100 pixelRef->unlockPixels()
    [all...]
  /frameworks/base/libs/hwui/
AssetAtlas.cpp 85 ssize_t index = mEntries.indexOfKey(bitmap->pixelRef());
90 ssize_t index = mEntries.indexOfKey(bitmap->pixelRef());
120 SkPixelRef* pixelRef = reinterpret_cast<SkPixelRef*>(map[i++]);
130 if (!pixelRef) continue;
133 x / width, (x + pixelRef->info().width()) / width,
134 y / height, (y + pixelRef->info().height()) / height);
137 texture->blend = !SkAlphaTypeIsOpaque(pixelRef->info().alphaType());
138 texture->width = pixelRef->info().width();
139 texture->height = pixelRef->info().height();
141 Entry* entry = new Entry(pixelRef, texture, mapper, *this)
    [all...]
AssetAtlas.h 48 * Entry representing the texture and uvMapper of a PixelRef in the
78 SkPixelRef* pixelRef;
85 Entry(SkPixelRef* pixelRef, Texture* texture, const UvMapper& mapper,
89 , pixelRef(pixelRef)
TextureCache.cpp 153 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID());
183 mCache.put(bitmap->pixelRef()->getStableID(), texture);
  /external/skia/src/gpu/
SkGr.cpp 194 SkPixelRef* pixelRef,
231 GrTexture* stretched = create_texture_for_bmp(context, optionalKey, rtDesc, pixelRef, NULL, 0);
257 SkAutoTUnref<SkData> data(bm.pixelRef()->refEncodedData());
300 return create_texture_for_bmp(ctx, optionalKey, desc, bm.pixelRef(), bytes, 0);
306 // Subsets are not supported, the whole pixelRef is loaded when using YUV decoding
307 SkPixelRef* pixelRef = bm.pixelRef();
308 if ((NULL == pixelRef) ||
309 (pixelRef->info().width() != bm.info().width()) ||
310 (pixelRef->info().height() != bm.info().height()))
    [all...]
SkGrPixelRef.cpp 96 SkGrPixelRef* pixelRef = SkNEW_ARGS(SkGrPixelRef, (info, dst));
98 return pixelRef;
  /external/skia/src/core/
SkWriteBuffer.cpp 186 SkPixelRef* pixelRef = bitmap.pixelRef();
187 if (pixelRef) {
188 // see if the pixelref already has an encoded version
189 SkAutoDataUnref existingData(pixelRef->refEncodedData());
209 // offset to share, since we are effectively creating a new pixelref
SkBitmapCache.cpp 33 This function finds the bounds of the bitmap *within its pixelRef*.
34 If the bitmap lacks a pixelRef, it will return an empty rect, since
39 if (!(bm.pixelRef())) {
116 src.pixelRef()->notifyAddedToCache();
217 src.pixelRef()->notifyAddedToCache();
SkBitmap.cpp 206 // ignore dx,dy if there is no pixelref
441 dst == NULL || (getPixels() == NULL && pixelRef() == NULL)) {
788 SkPixelRef* pixelRef = fPixelRef->deepCopy(this->colorType(), this->profileType(), &subset);
789 if (pixelRef != NULL) {
794 dst.setPixelRef(pixelRef)->unref();
815 // share the pixelref with a custom offset
941 if (dst->pixelRef() && dst->pixelRef()->info() == fPixelRef->info()) {
942 dst->pixelRef()->cloneGenID(*fPixelRef);
982 // pixelRef must be non NULL or tmpDst.readyToDraw() would hav
    [all...]
SkBitmapProcShader.cpp 194 SkASSERT(state.fBitmap->pixelRef() == NULL ||
195 state.fBitmap->pixelRef()->isLocked());
247 SkASSERT(state.fBitmap->pixelRef() == NULL ||
248 state.fBitmap->pixelRef()->isLocked());
SkBitmapDevice.cpp 107 SkASSERT(!fBitmap.pixelRef());
114 fBitmap = bm; // intent is to use bm's pixelRef (and rowbytes/config)
265 if(bitmap.pixelRef()->getTexture()) {
268 bitmap.pixelRef()->readPixels(&tmpBitmap, &srcIR);
SkPictureRecord.cpp 858 if (a.pixelRef() == b.pixelRef()) {
863 if (!a.pixelRef() || !b.pixelRef()) {
868 SkAutoTUnref<SkData> encA(a.pixelRef()->refEncodedData()),
869 encB(b.pixelRef()->refEncodedData());
    [all...]
  /external/skia/tools/
CopyTilesRenderer.cpp 98 dst.pixelRef()->readPixels(&copy, &subset);
  /external/skia/src/images/
SkImageDecoder_ktx.cpp 262 if (!bitmap.pixelRef()) {
265 SkAutoDataUnref data(bitmap.pixelRef()->refEncodedData());
SkImageDecoder.cpp 225 if (SkPixelRef* pr = bm->pixelRef()) {
  /external/skia/bench/
ETCBitmapBench.cpp 208 SkPixelRef* pr = fBitmap.pixelRef();
  /external/skia/include/core/
SkBitmapDevice.h 112 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); }
113 // just for subclasses, to assign a custom pixelref
SkBitmap.h 104 /** Return true iff the bitmap has no pixelref. Note: this can return true even if the
167 underlying pixelref. This state can be set, but it cannot be
169 that share the same pixelref.
221 * is non-null, call it to allcoate the pixelref. If the ImageInfo requires
270 * Install a pixelref that wraps the specified pixels and rowBytes, and
282 * of the created bitmap (and its pixelRef).
291 * of the created bitmap (and its pixelRef).
296 will automatically release any pixelref previously installed. Only call
328 /** Use the standard HeapAllocator to create the pixelref that manages the
330 If this is called multiple times, a new pixelref object will be create
    [all...]
  /external/skia/src/image/
SkSurface_Raster.cpp 127 if (SkBitmapImageGetPixelRef(this->getCachedImage(kNo_Budgeted)) == fBitmap.pixelRef()) {
SkImage_Raster.cpp 65 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); }
  /external/skia/src/pdf/
SkPDFBitmap.cpp 453 if (bm.pixelRef() && bm.pixelRefOrigin().isZero() &&
454 bm.dimensions() == bm.pixelRef()->info().dimensions()) {
456 SkAutoTUnref<SkData> data(bm.pixelRef()->refEncodedData());

Completed in 372 milliseconds

1 2