aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar Yuqian Li <liyuqian@google.com>2018-04-05 15:20:09 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-06 14:32:43 +0000
commita39991ebd70f4aaf1290dd516467d729811e45ee (patch)
tree4ccbfbe5406e6a5ff5312d374ade6e1636f4c5d2 /dm
parentf131b01977e00f4a524e07c439e4e4dd9c2d7134 (diff)
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 <kjlubick@google.com> Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'dm')
-rw-r--r--dm/DMSrcSink.cpp1
1 files changed, 1 insertions, 0 deletions
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