Home
last modified time | relevance | path

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

/frameworks/base/native/graphics/jni/
Dbitmap.cpp65 SkPixelRef* pixelRef = GraphicsJNI::refSkPixelRef(env, jbitmap); in AndroidBitmap_lockPixels() local
66 if (!pixelRef) { in AndroidBitmap_lockPixels()
70 pixelRef->lockPixels(); in AndroidBitmap_lockPixels()
71 void* addr = pixelRef->pixels(); in AndroidBitmap_lockPixels()
73 pixelRef->unlockPixels(); in AndroidBitmap_lockPixels()
74 pixelRef->unref(); in AndroidBitmap_lockPixels()
89 SkPixelRef* pixelRef = GraphicsJNI::refSkPixelRef(env, jbitmap); in AndroidBitmap_unlockPixels() local
90 if (!pixelRef) { in AndroidBitmap_unlockPixels()
98 pixelRef->notifyPixelsChanged(); in AndroidBitmap_unlockPixels()
100 pixelRef->unlockPixels(); in AndroidBitmap_unlockPixels()
[all …]
/frameworks/base/libs/hwui/
DAssetAtlas.cpp64 AssetAtlas::Entry* AssetAtlas::getEntry(const SkPixelRef* pixelRef) const { in getEntry()
65 auto result = mEntries.find(pixelRef); in getEntry()
69 Texture* AssetAtlas::getEntryTexture(const SkPixelRef* pixelRef) const { in getEntryTexture()
70 auto result = mEntries.find(pixelRef); in getEntryTexture()
101 SkPixelRef* pixelRef = reinterpret_cast<SkPixelRef*>(map[i++]); in createEntries() local
111 if (!pixelRef) continue; in createEntries()
114 x / width, (x + pixelRef->info().width()) / width, in createEntries()
115 y / height, (y + pixelRef->info().height()) / height); in createEntries()
118 texture->blend = !SkAlphaTypeIsOpaque(pixelRef->info().alphaType()); in createEntries()
119 texture->wrap(mTexture->id(), pixelRef->info().width(), in createEntries()
[all …]
DAssetAtlas.h80 SkPixelRef* pixelRef;
87 Entry(SkPixelRef* pixelRef, Texture* texture, const UvMapper& mapper, in Entry() argument
91 , pixelRef(pixelRef) in Entry()
151 Entry* getEntry(const SkPixelRef* pixelRef) const;
157 Texture* getEntryTexture(const SkPixelRef* pixelRef) const;
DTextureCache.cpp113 AssetAtlas::Entry* entry = mAssetAtlas->getEntry(bitmap->pixelRef()); in getCachedTexture()
119 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID()); in getCachedTexture()
150 mCache.put(bitmap->pixelRef()->getStableID(), texture); in getCachedTexture()
DBakedOpDispatcher.cpp51 AssetAtlas::Entry* entry = renderer.renderState().assetAtlas().getEntry(bitmap->pixelRef()); in onMergedBitmapOps()
96 firstOp.bitmap->pixelRef()); in onMergedPatchOps()
460 Texture* texture = renderer.renderState().assetAtlas().getEntryTexture(op.bitmap->pixelRef()); in onBitmapMeshOp()
602 AssetAtlas::Entry* entry = renderer.renderState().assetAtlas().getEntry(op.bitmap->pixelRef()); in onPatchOp()
DBakedOpRenderer.cpp185 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap->pixelRef()); in getTexture()
DSkiaCanvasProxy.cpp106 SkPixelRef* pxRef = bitmap.pixelRef(); in onDrawBitmap()
DDisplayListOp.h618 mEntry = renderer.renderState().assetAtlas().getEntry(mBitmap->pixelRef()); in getAtlasEntry()
783 mEntry = renderer.renderState().assetAtlas().getEntry(mBitmap->pixelRef()); in getAtlasEntry()
DOpenGLRenderer.cpp1535 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap->pixelRef());
2319 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap->pixelRef());
/frameworks/base/libs/hwui/tests/unit/
DSkiaBehaviorTests.cpp43 EXPECT_EQ(origBitmap.pixelRef(), bitmap.pixelRef()); in TEST()
DFrameBuilderTests.cpp405 EXPECT_EQ(opaqueBitmap.pixelRef(), op.bitmap->pixelRef()); in RENDERTHREAD_TEST()
408 EXPECT_EQ(transpBitmap.pixelRef(), op.bitmap->pixelRef()); in RENDERTHREAD_TEST()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp1360 SkPixelRef* pixelRef = bitmap.valid() ? bitmap->peekAtPixelRef() : nullptr; in Bitmap_refPixelRef() local
1361 SkSafeRef(pixelRef); in Bitmap_refPixelRef()
1362 return reinterpret_cast<jlong>(pixelRef); in Bitmap_refPixelRef()
DBitmapFactory.cpp517 if (outputBitmap.pixelRef() == NULL) { in doDecode()
DGraphics.cpp650 bitmap->pixelRef()->setImmutable(); in mapAshmemPixelRef()
/frameworks/base/core/jni/
Dcom_google_android_gles_jni_EGLImpl.cpp282 SkPixelRef* ref = nativeBitmap.pixelRef(); in jni_eglCreatePixmapSurface()