Lines Matching refs:errorMsg
140 SkString* errorMsg, int pad = 0) { in do_rescale_grid() argument
143 errorMsg->printf("YUV420 only supported on direct GPU for now."); in do_rescale_grid()
148 *errorMsg = "Not supported on recording/vector backends."; in do_rescale_grid()
164 errorMsg->printf("YUV420 async call failed. Allowed for now."); in do_rescale_grid()
172 errorMsg->printf("async read call failed."); in do_rescale_grid()
188 bool doYUV420, SkString* errorMsg) { in do_rescale_image_grid() argument
191 errorMsg->printf("Could not load image file %s.", imageFile); in do_rescale_image_grid()
195 *errorMsg = "Not supported on recording/vector backends."; in do_rescale_image_grid()
206 *errorMsg = "Could not create surface for image."; in do_rescale_image_grid()
216 return do_rescale_grid(canvas, surface.get(), srcRect, newW, newH, doYUV420, errorMsg); in do_rescale_image_grid()
220 DEF_SIMPLE_GM_CAN_FAIL(async_rescale_and_read_##TAG, canvas, errorMsg, 3 * W, 2 * H) { \
222 return do_rescale_image_grid(canvas, #IMAGE_FILE, SRC_RECT, W, H, false, errorMsg); \
226 DEF_SIMPLE_GM_CAN_FAIL(async_rescale_and_read_yuv420_##TAG, canvas, errorMsg, 3 * W, 2 * H) { \
228 return do_rescale_image_grid(canvas, #IMAGE_FILE, SRC_RECT, W, H, true, errorMsg); \
247 DEF_SIMPLE_GM_CAN_FAIL(async_rescale_and_read_no_bleed, canvas, errorMsg, 60, 60) {
249 *errorMsg = "Not supported on recording/vector backends.";
261 *errorMsg = "Could not create surface for image.";
278 result = do_rescale_grid(canvas, surface.get(), srcRect, downW, downH, false, errorMsg, kPad);
285 result = do_rescale_grid(canvas, surface.get(), srcRect, upW, upH, false, errorMsg, kPad);