aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ClearTest.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-03-16 08:39:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-16 08:39:42 -0700
commit2691d76a06e1af6282f8b3a3140cc93361be10c4 (patch)
tree61ce9609bafd5df2b6303cf853542ac3dc77247e /tests/ClearTest.cpp
parent935f1b1a20f673b81e78bec913cd702ffc793c99 (diff)
Use std::unique_ptr.
Diffstat (limited to 'tests/ClearTest.cpp')
-rw-r--r--tests/ClearTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ClearTest.cpp b/tests/ClearTest.cpp
index df152089fb..25fcf85849 100644
--- a/tests/ClearTest.cpp
+++ b/tests/ClearTest.cpp
@@ -62,7 +62,7 @@ static bool reset_dc(SkAutoTUnref<GrDrawContext>* dc, SkAutoTUnref<GrSurface>* r
GrRenderTarget* rt = (*rtKeepAlive)->asRenderTarget();
SkASSERT(rt->getUniqueID() != oldID);
dc->reset(context->drawContext(rt));
- return SkToBool(*dc);
+ return *dc != nullptr;
}
DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ClearBatch, reporter, context) {