diff options
author | mtklein <mtklein@chromium.org> | 2014-07-15 14:38:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-15 14:38:53 -0700 |
commit | 184ff37c625f8a0588c6e27a24d2284bd70593df (patch) | |
tree | f61255c5beaffb0af99e54dad5df729b1481d874 | |
parent | a179a1ede9e8ff17e23a61a55d822e862d09b8e8 (diff) |
Keep at most one GPU device alive at a time.
NOTREECHECKS=true
BUG=skia:
R=bsalomon@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/392013004
-rw-r--r-- | tests/PremulAlphaRoundTripTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PremulAlphaRoundTripTest.cpp b/tests/PremulAlphaRoundTripTest.cpp index af041ce9c2..492a4aa395 100644 --- a/tests/PremulAlphaRoundTripTest.cpp +++ b/tests/PremulAlphaRoundTripTest.cpp @@ -67,7 +67,6 @@ static void fillCanvas(SkCanvas* canvas, SkColorType colorType, PackUnpremulProc DEF_GPUTEST(PremulAlphaRoundTrip, reporter, factory) { const SkImageInfo info = SkImageInfo::MakeN32Premul(256, 256); - SkAutoTUnref<SkBaseDevice> device; for (int dtype = 0; dtype < 2; ++dtype) { int glCtxTypeCnt = 1; @@ -77,6 +76,7 @@ DEF_GPUTEST(PremulAlphaRoundTrip, reporter, factory) { } #endif for (int glCtxType = 0; glCtxType < glCtxTypeCnt; ++glCtxType) { + SkAutoTUnref<SkBaseDevice> device; if (0 == dtype) { device.reset(SkBitmapDevice::Create(info)); } else { |