aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-04-23 10:57:37 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-23 15:18:40 +0000
commit4231401dba47ff6e671b7cf1e9d193aa3feac754 (patch)
treededc2015d773b0907b0e4e16dd4a393c7f005cf0 /gm
parentc90b4dbec5b6891fc257945aa95c0e39cd5f7a7c (diff)
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 <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'gm')
-rw-r--r--gm/imagefromyuvtextures.cpp2
1 files changed, 2 insertions, 0 deletions
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]);