Lines Matching refs:gold
79 const SkBitmap& gold, std::function<void(DrawMeshHelper*)> testFn);
94 SkBitmap gold;
100 gold.allocN32Pixels(kImageWidth, kImageHeight);
102 SkCanvas goldCanvas(gold);
139 run_test("setNonIndexedNonInstanced", reporter, rtc, gold, [&](DrawMeshHelper* helper) {
158 run_test("setIndexed", reporter, rtc, gold, [&](DrawMeshHelper* helper) {
182 run_test("setIndexedPatterned", reporter, rtc, gold, [&](DrawMeshHelper* helper) {
204 reporter, rtc, gold, [&](DrawMeshHelper* helper) {
378 const sk_sp<GrRenderTargetContext>& rtc, const SkBitmap& gold,
380 const int w = gold.width(), h = gold.height(), rowBytes = gold.rowBytes();
381 const uint32_t* goldPx = reinterpret_cast<const uint32_t*>(gold.getPixels());
386 if (sizeof(uint32_t) * kImageWidth != gold.rowBytes()) {
387 ERRORF(reporter, "unexpected row bytes in gold image.", testName);
394 rtc->readPixels(gold.info(), resultPx, rowBytes, 0, 0, 0);