Home
last modified time | relevance | path

Searched refs:readBack (Results 1 – 8 of 8) sorted by relevance

/external/skqp/tests/
DOnFlushCallbackTest.cpp583 SkBitmap readBack; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
584 readBack.allocN32Pixels(kFinalWidth, kFinalHeight); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
586 SkDEBUGCODE(bool result =) rtc->readPixels(readBack.info(), readBack.getPixels(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
587 readBack.rowBytes(), 0, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
595 test_color(reporter, readBack, x, SK_ColorRED); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
597 test_color(reporter, readBack, x, SK_ColorGREEN); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
599 test_color(reporter, readBack, x, SK_ColorBLUE); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
601 test_color(reporter, readBack, x, SK_ColorCYAN); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
603 test_color(reporter, readBack, x, SK_ColorMAGENTA); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
605 test_color(reporter, readBack, x, SK_ColorYELLOW); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DPathTest.cpp2599 SkPath readBack; in write_and_read_back() local
2600 REPORTER_ASSERT(reporter, readBack != p); in write_and_read_back()
2601 reader.readPath(&readBack); in write_and_read_back()
2602 REPORTER_ASSERT(reporter, readBack == p); in write_and_read_back()
2604 REPORTER_ASSERT(reporter, readBack.getConvexityOrUnknown() == in write_and_read_back()
2610 REPORTER_ASSERT(reporter, readBack.isOval(nullptr) == p.isOval(nullptr)); in write_and_read_back()
2612 SkPathPriv::IsOval(readBack, &oval1, &dir1, &start1)) { in write_and_read_back()
2617 REPORTER_ASSERT(reporter, readBack.isRRect(nullptr) == p.isRRect(nullptr)); in write_and_read_back()
2620 SkPathPriv::IsRRect(readBack, &rrect1, &dir1, &start1)) { in write_and_read_back()
2626 const SkRect& readBackBounds = readBack.getBounds(); in write_and_read_back()
[all …]
/external/skia/tests/
DOnFlushCallbackTest.cpp603 SkBitmap readBack; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
604 readBack.allocN32Pixels(kFinalWidth, kFinalHeight); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
606 SkAssertResult(rtc->readPixels(dContext, readBack.pixmap(), {0, 0})); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
613 test_color(reporter, readBack, x, SK_ColorRED); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
615 test_color(reporter, readBack, x, SK_ColorGREEN); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
617 test_color(reporter, readBack, x, SK_ColorBLUE); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
619 test_color(reporter, readBack, x, SK_ColorCYAN); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
621 test_color(reporter, readBack, x, SK_ColorMAGENTA); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
623 test_color(reporter, readBack, x, SK_ColorYELLOW); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DPathTest.cpp2590 SkPath readBack; in write_and_read_back() local
2591 REPORTER_ASSERT(reporter, readBack != p); in write_and_read_back()
2592 reader.readPath(&readBack); in write_and_read_back()
2593 REPORTER_ASSERT(reporter, readBack == p); in write_and_read_back()
2595 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(readBack) == in write_and_read_back()
2601 REPORTER_ASSERT(reporter, readBack.isOval(nullptr) == p.isOval(nullptr)); in write_and_read_back()
2603 SkPathPriv::IsOval(readBack, &oval1, &dir1, &start1)) { in write_and_read_back()
2608 REPORTER_ASSERT(reporter, readBack.isRRect(nullptr) == p.isRRect(nullptr)); in write_and_read_back()
2611 SkPathPriv::IsRRect(readBack, &rrect1, &dir1, &start1)) { in write_and_read_back()
2617 const SkRect& readBackBounds = readBack.getBounds(); in write_and_read_back()
[all …]
/external/skia/gm/
Dwacky_yuv_formats.cpp1127 SkBitmap readBack; in onDraw() local
1128 readBack.allocPixels(yuv->imageInfo()); in onDraw()
1129 SkAssertResult(yuv->readPixels(dContext, readBack.pixmap(), 0, 0)); in onDraw()
1130 canvas->drawImage(readBack.asImage(), x, y); in onDraw()
/external/llvm-project/flang/unittests/Evaluate/
Dreal.cpp424 auto readBack{REAL::Read(p, rounding)}; in subsetTests() local
425 MATCH(rj, readBack.value.RawBits().ToUInt64()) in subsetTests()
/external/skia/dm/
DDMSrcSink.cpp1524 bool GPUSink::readBack(SkSurface* surface, SkBitmap* dst) const { in readBack() function in DM::GPUSink
1575 this->readBack(surface.get(), dst); in onDraw()
1774 if (!this->readBack(surface.get(), dst)) { in draw()
1949 if (!this->readBack(surface.get(), dst)) { in draw()
DDMSrcSink.h410 bool readBack(SkSurface*, SkBitmap* dst) const;