Searched refs:badRowBytes (Results 1 – 3 of 3) sorted by relevance
/third_party/skia/tests/ |
D | WritePixelsTest.cpp | 588 size_t badRowBytes = (surf->width() + 1)*bpp - 1; in DEF_TEST() local 589 auto storage = std::make_unique<char[]>(badRowBytes*surf->height()); in DEF_TEST() 590 memset(storage.get(), 0, badRowBytes * surf->height()); in DEF_TEST() 593 !surf->getCanvas()->writePixels(srcII, storage.get(), badRowBytes, 0, 0)); in DEF_TEST()
|
D | ReadWritePixelsGpuTest.cpp | 530 size_t badRowBytes = (surf->width() + 1)*bpp - 1; in DEF_GPUTEST_FOR_ALL_CONTEXTS() local 531 auto storage = std::make_unique<char[]>(badRowBytes*surf->height()); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 532 REPORTER_ASSERT(reporter, !surf->readPixels(dstII, storage.get(), badRowBytes, 0, 0)); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 546 size_t badRowBytes = (surf->width() + 1)*bpp - 1; in DEF_GPUTEST_FOR_ALL_CONTEXTS() local 547 auto storage = std::make_unique<char[]>(badRowBytes*surf->height()); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 548 memset(storage.get(), 0, badRowBytes * surf->height()); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 551 !surf->getCanvas()->writePixels(srcII, storage.get(), badRowBytes, 0, 0)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
|
D | ReadPixelsTest.cpp | 525 size_t badRowBytes = (surf->width() + 1)*bpp - 1; in DEF_TEST() local 526 auto storage = std::make_unique<char[]>(badRowBytes*surf->height()); in DEF_TEST() 527 REPORTER_ASSERT(reporter, !surf->readPixels(dstII, storage.get(), badRowBytes, 0, 0)); in DEF_TEST()
|