aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ReadWriteAlphaTest.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-07-21 13:28:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-21 13:28:36 -0700
commitdfe4f2e4fe5b162d4adb4486fe751f1e3b30bea7 (patch)
treeaa6ff74a25306386a0c5b5586a4843b470d80101 /tests/ReadWriteAlphaTest.cpp
parent8602ede5fdfa721dcad4dcb11db028c1c24265f1 (diff)
Add SkColorSpace to GrDrawContext
Diffstat (limited to 'tests/ReadWriteAlphaTest.cpp')
-rw-r--r--tests/ReadWriteAlphaTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ReadWriteAlphaTest.cpp b/tests/ReadWriteAlphaTest.cpp
index 630924aca6..16f43ea310 100644
--- a/tests/ReadWriteAlphaTest.cpp
+++ b/tests/ReadWriteAlphaTest.cpp
@@ -93,7 +93,8 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadWriteAlpha, reporter, ctxInfo) {
// Now try writing on the single channel texture (if we could create as a RT).
if (texture->asRenderTarget()) {
- sk_sp<SkSurface> surf(SkSurface::MakeRenderTargetDirect(texture->asRenderTarget()));
+ sk_sp<SkSurface> surf(SkSurface::MakeRenderTargetDirect(texture->asRenderTarget(),
+ nullptr));
SkCanvas* canvas = surf->getCanvas();
SkPaint paint;