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

1 2

  /external/skia/include/core/
SkMallocPixelRef.h 11 #include "SkPixelRef.h"
16 class SK_API SkMallocPixelRef : public SkPixelRef {
26 static sk_sp<SkPixelRef> MakeDirect(const SkImageInfo&, void* addr, size_t rowBytes);
38 static sk_sp<SkPixelRef> MakeAllocate(const SkImageInfo&, size_t rowBytes);
43 static sk_sp<SkPixelRef> MakeZeroed(const SkImageInfo&, size_t rowBytes);
58 static sk_sp<SkPixelRef> MakeWithProc(const SkImageInfo& info, size_t rowBytes, void* addr,
69 static sk_sp<SkPixelRef> MakeWithData(const SkImageInfo&, size_t rowBytes, sk_sp<SkData> data);
76 static sk_sp<SkPixelRef> MakeUsing(void*(*alloc)(size_t),
85 typedef SkPixelRef INHERITED;
SkPixelRef.h 27 /** \class SkPixelRef
32 class SK_API SkPixelRef : public SkRefCnt {
34 SkPixelRef(int width, int height, void* addr, size_t rowBytes);
35 ~SkPixelRef() override;
49 /** Returns a non-zero, unique value corresponding to this SkPixelRef.
52 to consider this ID unique even after this SkPixelRef is deleted.
54 Can be used as a key which uniquely identifies this SkPixelRef
80 // We'll only call the listener if we're confident that we are the only SkPixelRef with this
85 // This can be used to invalidate caches keyed by SkPixelRef generation ID.
147 friend void SkBitmapCache_setImmutableWithID(SkPixelRef*, uint32_t)
    [all...]
SkBitmap.h 21 class SkPixelRef;
28 SkBitmap points to SkPixelRef, which describes the physical array of pixels.
29 SkImageInfo bounds may be located anywhere fully inside SkPixelRef bounds.
39 and so on cannot change. It does not affect SkPixelRef: a caller may write its
50 kUnknown_SkAlphaType, and with a width and height of zero. SkPixelRef origin is
63 @param src SkBitmap to copy SkImageInfo, and share SkPixelRef
71 @param src SkBitmap to copy SkImageInfo, and reassign SkPixelRef
76 /** Decrements SkPixelRef reference count, if SkPixelRef is not nullptr.
83 @param src SkBitmap to copy SkImageInfo, and share SkPixelRef
    [all...]
  /external/skqp/include/core/
SkMallocPixelRef.h 11 #include "SkPixelRef.h"
16 class SK_API SkMallocPixelRef : public SkPixelRef {
26 static sk_sp<SkPixelRef> MakeDirect(const SkImageInfo&, void* addr, size_t rowBytes);
38 static sk_sp<SkPixelRef> MakeAllocate(const SkImageInfo&, size_t rowBytes);
43 static sk_sp<SkPixelRef> MakeZeroed(const SkImageInfo&, size_t rowBytes);
58 static sk_sp<SkPixelRef> MakeWithProc(const SkImageInfo& info, size_t rowBytes, void* addr,
69 static sk_sp<SkPixelRef> MakeWithData(const SkImageInfo&, size_t rowBytes, sk_sp<SkData> data);
76 static sk_sp<SkPixelRef> MakeUsing(void*(*alloc)(size_t),
85 typedef SkPixelRef INHERITED;
SkPixelRef.h 27 /** \class SkPixelRef
32 class SK_API SkPixelRef : public SkRefCnt {
34 SkPixelRef(int width, int height, void* addr, size_t rowBytes);
35 ~SkPixelRef() override;
49 /** Returns a non-zero, unique value corresponding to this SkPixelRef.
52 to consider this ID unique even after this SkPixelRef is deleted.
54 Can be used as a key which uniquely identifies this SkPixelRef
80 // We'll only call the listener if we're confident that we are the only SkPixelRef with this
85 // This can be used to invalidate caches keyed by SkPixelRef generation ID.
147 friend void SkBitmapCache_setImmutableWithID(SkPixelRef*, uint32_t)
    [all...]
SkBitmap.h 21 class SkPixelRef;
28 SkBitmap points to SkPixelRef, which describes the physical array of pixels.
29 SkImageInfo bounds may be located anywhere fully inside SkPixelRef bounds.
39 and so on cannot change. It does not affect SkPixelRef: a caller may write its
50 kUnknown_SkAlphaType, and with a width and height of zero. SkPixelRef origin is
63 @param src SkBitmap to copy SkImageInfo, and share SkPixelRef
71 @param src SkBitmap to copy SkImageInfo, and reassign SkPixelRef
76 /** Decrements SkPixelRef reference count, if SkPixelRef is not nullptr.
83 @param src SkBitmap to copy SkImageInfo, and share SkPixelRef
    [all...]
  /external/skia/src/core/
SkPixelRef.cpp 10 #include "SkPixelRef.h"
33 SkPixelRef::SkPixelRef(int width, int height, void* pixels, size_t rowBytes)
51 SkPixelRef::~SkPixelRef() {
59 void SkPixelRef::android_only_reset(int width, int height, size_t rowBytes) {
69 void SkPixelRef::needsNewGenID() {
74 uint32_t SkPixelRef::getGenerationID() const {
89 void SkPixelRef::addGenIDChangeListener(GenIDChangeListener* listener) {
99 void SkPixelRef::callGenIDChangeListeners()
    [all...]
SkMallocPixelRef.cpp 47 sk_sp<SkPixelRef> SkMallocPixelRef::MakeDirect(const SkImageInfo& info,
53 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, nullptr, nullptr));
57 sk_sp<SkPixelRef> SkMallocPixelRef::MakeUsing(void*(*allocProc)(size_t),
81 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes,
85 sk_sp<SkPixelRef> SkMallocPixelRef::MakeAllocate(const SkImageInfo& info, size_t rowBytes) {
89 sk_sp<SkPixelRef> SkMallocPixelRef::MakeZeroed(const SkImageInfo& info,
98 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithProc(const SkImageInfo& info,
109 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, proc, context));
112 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithData(const SkImageInfo& info,
127 SkPixelRef* pr = new SkMallocPixelRef(info, pixels, rowBytes
    [all...]
SkImagePriv.h 51 extern const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* rasterImage);
SkSpecialSurface.cpp 67 sk_sp<SkPixelRef> pr,
108 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeZeroed(info, 0);
  /external/skqp/src/core/
SkPixelRef.cpp 10 #include "SkPixelRef.h"
33 SkPixelRef::SkPixelRef(int width, int height, void* pixels, size_t rowBytes)
51 SkPixelRef::~SkPixelRef() {
59 void SkPixelRef::android_only_reset(int width, int height, size_t rowBytes) {
69 void SkPixelRef::needsNewGenID() {
74 uint32_t SkPixelRef::getGenerationID() const {
89 void SkPixelRef::addGenIDChangeListener(GenIDChangeListener* listener) {
99 void SkPixelRef::callGenIDChangeListeners()
    [all...]
SkMallocPixelRef.cpp 47 sk_sp<SkPixelRef> SkMallocPixelRef::MakeDirect(const SkImageInfo& info,
53 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, nullptr, nullptr));
57 sk_sp<SkPixelRef> SkMallocPixelRef::MakeUsing(void*(*allocProc)(size_t),
81 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes,
85 sk_sp<SkPixelRef> SkMallocPixelRef::MakeAllocate(const SkImageInfo& info, size_t rowBytes) {
89 sk_sp<SkPixelRef> SkMallocPixelRef::MakeZeroed(const SkImageInfo& info,
98 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithProc(const SkImageInfo& info,
109 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, proc, context));
112 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithData(const SkImageInfo& info,
127 SkPixelRef* pr = new SkMallocPixelRef(info, pixels, rowBytes
    [all...]
SkImagePriv.h 51 extern const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* rasterImage);
SkSpecialSurface.cpp 67 sk_sp<SkPixelRef> pr,
108 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeZeroed(info, 0);
  /external/skia/tests/
MallocPixelRefTest.cpp 28 sk_sp<SkPixelRef> pr(
37 sk_sp<SkPixelRef> pr(
46 sk_sp<SkPixelRef> pr(
55 sk_sp<SkPixelRef> pr(
61 sk_sp<SkPixelRef> pr(
68 sk_sp<SkPixelRef> pr(
76 sk_sp<SkPixelRef> pr(
90 sk_sp<SkPixelRef> pr(
101 sk_sp<SkPixelRef> pr(
110 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeWithData(info, rowBytes, data)
    [all...]
PixelRefTest.cpp 11 #include "SkPixelRef.h"
61 class TestListener : public SkPixelRef::GenIDChangeListener {
72 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0);
80 // (An SkPixelRef tree falls in the forest but there's nobody around to hear it. Do we care?)
  /external/skqp/tests/
MallocPixelRefTest.cpp 28 sk_sp<SkPixelRef> pr(
37 sk_sp<SkPixelRef> pr(
46 sk_sp<SkPixelRef> pr(
55 sk_sp<SkPixelRef> pr(
61 sk_sp<SkPixelRef> pr(
68 sk_sp<SkPixelRef> pr(
76 sk_sp<SkPixelRef> pr(
90 sk_sp<SkPixelRef> pr(
101 sk_sp<SkPixelRef> pr(
110 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeWithData(info, rowBytes, data)
    [all...]
PixelRefTest.cpp 11 #include "SkPixelRef.h"
61 class TestListener : public SkPixelRef::GenIDChangeListener {
72 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0);
80 // (An SkPixelRef tree falls in the forest but there's nobody around to hear it. Do we care?)
  /frameworks/base/libs/hwui/hwui/
Bitmap.h 24 #include <SkPixelRef.h>
47 class ANDROID_API Bitmap : public SkPixelRef {
60 static sk_sp<Bitmap> createFrom(const SkImageInfo&, SkPixelRef&);
Bitmap.cpp 126 auto pixelRef = (SkPixelRef*)context;
130 sk_sp<Bitmap> Bitmap::createFrom(const SkImageInfo& info, SkPixelRef& pixelRef) {
174 : SkPixelRef(info.width(), info.height(), address, rowBytes)
183 : SkPixelRef(info.width(), info.height(), address, rowBytes)
192 : SkPixelRef(info.width(), info.height(), address, rowBytes)
201 : SkPixelRef(info.width(), info.height(), nullptr,
300 sk_sp<SkPixelRef> pixelRef = sk_ref_sp(outBitmap->pixelRef());
332 // TODO: refactor Bitmap to not derive from SkPixelRef, which would allow caching here.
  /external/skia/src/image/
SkSurface_Raster.cpp 20 SkSurface_Raster(const SkImageInfo& info, sk_sp<SkPixelRef>, const SkSurfaceProps*);
113 SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, sk_sp<SkPixelRef> pr,
139 if (SkPixelRef* pr = fBitmap.pixelRef()) {
157 if (SkPixelRef* pr = fBitmap.pixelRef()) {
216 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeZeroed(info, rowBytes);
  /external/skqp/src/image/
SkSurface_Raster.cpp 19 SkSurface_Raster(const SkImageInfo& info, sk_sp<SkPixelRef>, const SkSurfaceProps*);
108 SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, sk_sp<SkPixelRef> pr,
134 if (SkPixelRef* pr = fBitmap.pixelRef()) {
148 if (SkPixelRef* pr = fBitmap.pixelRef()) {
207 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeZeroed(info, rowBytes);
  /frameworks/base/libs/hwui/
ResourceCache.h 23 #include <SkPixelRef.h>
  /external/skia/src/gpu/
SkGr.h 37 class SkPixelRef;
237 * - SkBitmap/SkPixelRef
247 void GrInstallBitmapUniqueKeyInvalidator(const GrUniqueKey& key, SkPixelRef* pixelRef);
  /external/skqp/src/gpu/
SkGr.h 37 class SkPixelRef;
253 * - SkBitmap/SkPixelRef
263 void GrInstallBitmapUniqueKeyInvalidator(const GrUniqueKey& key, SkPixelRef* pixelRef);

Completed in 353 milliseconds

1 2