Revert of fix build by using ifdef instead of if for SK_DEBUG (patchset #1 id:1 of...
authorreed <reed@google.com>
Thu, 28 Apr 2016 15:11:51 +0000 (08:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 28 Apr 2016 15:11:51 +0000 (08:11 -0700)
Reason for revert:
need to revert main change for now

Original issue's description:
> fix build by using ifdef instead of if for SK_DEBUG
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1924943003
>
> TBR=
> NOTRY=True
>
> Committed: https://skia.googlesource.com/skia/+/b8498825b54718cdd90c30c39323cfc433695f23

TBR=djsollen@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review-Url: https://codereview.chromium.org/1927113002

src/core/SkResourceCache.cpp

index 6e3ad83..bacb815 100644 (file)
@@ -549,7 +549,7 @@ static void cleanup_gResourceCache() {
     // Chrome seems to have funky multi-process things going on in unit tests that
     // makes this unsafe to delete when the main process atexit()s.
     // SkLazyPtr does the same sort of thing.
-#ifdef SK_DEBUG
+#if SK_DEBUG
     delete gResourceCache;
 #endif
 }