aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ReadWriteAlphaTest.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-06-23 14:38:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-23 14:38:48 -0700
commit74f681dce2fbadd481596aea15afb3e0fb36ceff (patch)
tree86093c4896eeddbbc33283288fbebb21996fce13 /tests/ReadWriteAlphaTest.cpp
parent5fbb623099a6d0e0e72e7e230e75014fd64ae240 (diff)
Make SkGpuDevice know its alpha type
Make SkImage_Gpu snapshots opaque if surface is opaque. BUG=skia:3965 Review URL: https://codereview.chromium.org/1205643002
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 6ae77d0411..a767068622 100644
--- a/tests/ReadWriteAlphaTest.cpp
+++ b/tests/ReadWriteAlphaTest.cpp
@@ -83,7 +83,8 @@ DEF_GPUTEST(ReadWriteAlpha, reporter, factory) {
// Now try writing on the single channel texture
SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType);
- SkAutoTUnref<SkBaseDevice> device(SkGpuDevice::Create(texture->asRenderTarget(), &props));
+ SkAutoTUnref<SkBaseDevice> device(SkGpuDevice::Create(texture->asRenderTarget(), &props,
+ SkGpuDevice::kUninit_InitContents));
SkCanvas canvas(device);
SkPaint paint;