Home
last modified time | relevance | path

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

/third_party/flutter/skia/tests/
DOnFlushCallbackTest.cpp581 SkBitmap readBack; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
582 readBack.allocN32Pixels(kFinalWidth, kFinalHeight); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
584 SkDEBUGCODE(bool result =) rtc->readPixels(readBack.info(), readBack.getPixels(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
585 readBack.rowBytes(), {0, 0}); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
593 test_color(reporter, readBack, x, SK_ColorRED); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
595 test_color(reporter, readBack, x, SK_ColorGREEN); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
597 test_color(reporter, readBack, x, SK_ColorBLUE); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
599 test_color(reporter, readBack, x, SK_ColorCYAN); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
601 test_color(reporter, readBack, x, SK_ColorMAGENTA); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
603 test_color(reporter, readBack, x, SK_ColorYELLOW); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DPathTest.cpp2593 SkPath readBack; in write_and_read_back() local
2594 REPORTER_ASSERT(reporter, readBack != p); in write_and_read_back()
2595 reader.readPath(&readBack); in write_and_read_back()
2596 REPORTER_ASSERT(reporter, readBack == p); in write_and_read_back()
2598 REPORTER_ASSERT(reporter, readBack.getConvexityOrUnknown() == in write_and_read_back()
2604 REPORTER_ASSERT(reporter, readBack.isOval(nullptr) == p.isOval(nullptr)); in write_and_read_back()
2606 SkPathPriv::IsOval(readBack, &oval1, &dir1, &start1)) { in write_and_read_back()
2611 REPORTER_ASSERT(reporter, readBack.isRRect(nullptr) == p.isRRect(nullptr)); in write_and_read_back()
2614 SkPathPriv::IsRRect(readBack, &rrect1, &dir1, &start1)) { in write_and_read_back()
2620 const SkRect& readBackBounds = readBack.getBounds(); in write_and_read_back()
[all …]
/third_party/skia/gm/
Dwacky_yuv_formats.cpp1124 SkBitmap readBack; in onDraw() local
1125 readBack.allocPixels(yuv->imageInfo()); in onDraw()
1126 SkAssertResult(yuv->readPixels(dContext, readBack.pixmap(), 0, 0)); in onDraw()
1127 canvas->drawImage(readBack.asImage(), x, y); in onDraw()
/third_party/skia/tests/
DPathTest.cpp2589 SkPath readBack; in write_and_read_back() local
2590 REPORTER_ASSERT(reporter, readBack != p); in write_and_read_back()
2591 reader.readPath(&readBack); in write_and_read_back()
2592 REPORTER_ASSERT(reporter, readBack == p); in write_and_read_back()
2594 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(readBack) == in write_and_read_back()
2600 REPORTER_ASSERT(reporter, readBack.isOval(nullptr) == p.isOval(nullptr)); in write_and_read_back()
2602 SkPathPriv::IsOval(readBack, &oval1, &dir1, &start1)) { in write_and_read_back()
2607 REPORTER_ASSERT(reporter, readBack.isRRect(nullptr) == p.isRRect(nullptr)); in write_and_read_back()
2610 SkPathPriv::IsRRect(readBack, &rrect1, &dir1, &start1)) { in write_and_read_back()
2616 const SkRect& readBackBounds = readBack.getBounds(); in write_and_read_back()
[all …]
/third_party/flutter/skia/gm/
Dwacky_yuv_formats.cpp1457 SkBitmap readBack; in onDraw() local
1458 readBack.allocPixels(yuv->imageInfo()); in onDraw()
1459 yuv->readPixels(readBack.pixmap(), 0, 0); in onDraw()
1460 canvas->drawBitmap(readBack, x, y); in onDraw()
/third_party/skia/dm/
DDMSrcSink.cpp1535 bool GPUSink::readBack(SkSurface* surface, SkBitmap* dst) const { in readBack() function in DM::GPUSink
1586 this->readBack(surface.get(), dst); in onDraw()
1785 if (!this->readBack(surface.get(), dst)) { in draw()
1960 if (!this->readBack(surface.get(), dst)) { in draw()
DDMSrcSink.h414 bool readBack(SkSurface*, SkBitmap* dst) const;