17 int* counter = (
int*)ctx;
102 auto listener = sk_make_sp<TestListener>(&
count);
105 listener->markShouldDeregister();
111 listener = sk_make_sp<TestListener>(&
count);
114 listener->markShouldDeregister();
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void test_dont_leak_install(skiatest::Reporter *reporter)
static void test_install(skiatest::Reporter *reporter)
static void decrement_counter_proc(void *pixels, void *ctx)
DEF_TEST(PixelRef_GenIDChange, r)
#define REPORTER_ASSERT(r, cond,...)
bool installPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, void(*releaseProc)(void *addr, void *context), void *context)
void notifyPixelsChanged()
uint32_t getGenerationID() const
void addGenIDChangeListener(sk_sp< SkIDChangeListener > listener)
SK_API sk_sp< SkPixelRef > MakeAllocate(const SkImageInfo &, size_t rowBytes)
static SkImageInfo MakeN32Premul(int width, int height)