From 4231401dba47ff6e671b7cf1e9d193aa3feac754 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Mon, 23 Apr 2018 10:57:37 -0400 Subject: Fixes in ReadPixels2 and yuv_texture gm to fix Vulkan validation issues. Bug: skia: Change-Id: Idfccdec9106bdc79a690da0e173a232a0cbe51a9 Reviewed-on: https://skia-review.googlesource.com/122955 Reviewed-by: Brian Salomon Commit-Queue: Greg Daniel --- gm/imagefromyuvtextures.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gm') diff --git a/gm/imagefromyuvtextures.cpp b/gm/imagefromyuvtextures.cpp index 4db805d60e..a6aa000f1f 100644 --- a/gm/imagefromyuvtextures.cpp +++ b/gm/imagefromyuvtextures.cpp @@ -118,6 +118,8 @@ protected: return; } + context->flush(); + gpu->testingOnly_flushGpuAndSync(); for (int i = 0; i < 3; ++i) { if (yuvTextures[i].isValid()) { gpu->deleteTestingOnlyBackendTexture(yuvTextures[i]); -- cgit v1.2.3