commit | f5d8758f29390fd5c135df12bc8a5e196854eda2 | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Mon Dec 18 14:48:15 2017 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Dec 18 21:17:46 2017 +0000 |
tree | a7de0b54b030dda4549bc9feb0a0e2ff65ded7d6 | |
parent | 4fafedd33add9948db1147c60d681ed9340984fd [diff] [blame] |
Add new SkImage factory to create from GrBackendTexture with SkColorType Bug: skia: Change-Id: I46bdc54b6d9cdacc8f5a06644aa6b110837879f0 Reviewed-on: https://skia-review.googlesource.com/84342 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/tests/SurfaceSemaphoreTest.cpp b/tests/SurfaceSemaphoreTest.cpp index 8ae0953..b4f63fe 100644 --- a/tests/SurfaceSemaphoreTest.cpp +++ b/tests/SurfaceSemaphoreTest.cpp
@@ -83,7 +83,10 @@ sk_sp<SkImage> childImage = SkImage::MakeFromTexture(childCtx, backendTexture, kTopLeft_GrSurfaceOrigin, + kRGBA_8888_SkColorType, kPremul_SkAlphaType, + nullptr, + nullptr, nullptr); SkCanvas* childCanvas = childSurface->getCanvas();