From a39991ebd70f4aaf1290dd516467d729811e45ee Mon Sep 17 00:00:00 2001 From: Yuqian Li Date: Thu, 5 Apr 2018 15:20:09 -0400 Subject: Exercise the threaded backend in test bots We can't draw everything correctly now, but it's at least not crashing. The draw_to_canvas is modified by adding flush because now the raster canvas also needs flush like GPU canvases because of the threaded backend. (Previously, AndroidCodecSrc vetoed GPU (non-raster) sink and that's why it was not crashing.) Bug: skia: Change-Id: I222d706c33e15326e1b97d6bef6c46b8c35cebfd Reviewed-on: https://skia-review.googlesource.com/118886 Reviewed-by: Kevin Lubick Commit-Queue: Yuqian Li --- dm/DMSrcSink.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'dm') diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp index 6a14c6363c..0345848b29 100644 --- a/dm/DMSrcSink.cpp +++ b/dm/DMSrcSink.cpp @@ -418,6 +418,7 @@ static void draw_to_canvas(SkCanvas* canvas, const SkImageInfo& info, void* pixe premultiply_if_necessary(bitmap); swap_rb_if_necessary(bitmap, dstColorType); canvas->drawBitmap(bitmap, left, top); + canvas->flush(); } // For codec srcs, we want the "draw" step to be a memcpy. Any interesting color space or -- cgit v1.2.3