aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageTest.cpp
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-04-19 10:28:37 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-19 15:02:34 +0000
commit57bf4a3dbf01f11d3f2ec2e1952388220bef50be (patch)
treef1b314e6fcb32cf95419f592216e0e1ce90498c4 /tests/ImageTest.cpp
parentbc54533b2b2c6dddd182806a0dc0dd012e7139e2 (diff)
When creating testing backendTexture take colorspace into account.
Bug: skia: Change-Id: Ifa8dbad3eca81790648476f9a6d3fa5a088fede9 Reviewed-on: https://skia-review.googlesource.com/122341 Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tests/ImageTest.cpp')
-rw-r--r--tests/ImageTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp
index 9940574eee..73c0bf197c 100644
--- a/tests/ImageTest.cpp
+++ b/tests/ImageTest.cpp
@@ -494,7 +494,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrContext_colorTypeSupportedAsImage, reporter
bool can = ctxInfo.grContext()->colorTypeSupportedAsImage(colorType);
auto* gpu = ctxInfo.grContext()->contextPriv().getGpu();
GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture(
- nullptr, kSize, kSize, colorType, false, GrMipMapped::kNo);
+ nullptr, kSize, kSize, colorType, nullptr, false, GrMipMapped::kNo);
auto img =
SkImage::MakeFromTexture(ctxInfo.grContext(), backendTex, kTopLeft_GrSurfaceOrigin,
colorType, kOpaque_SkAlphaType, nullptr);