From 184ff37c625f8a0588c6e27a24d2284bd70593df Mon Sep 17 00:00:00 2001 From: mtklein Date: Tue, 15 Jul 2014 14:38:53 -0700 Subject: 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 --- tests/PremulAlphaRoundTripTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/PremulAlphaRoundTripTest.cpp') 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 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 device; if (0 == dtype) { device.reset(SkBitmapDevice::Create(info)); } else { -- cgit v1.2.3