From 2b2810b4eb423cc6a368b5f8b011a3508fef7a63 Mon Sep 17 00:00:00 2001 From: reed Date: Mon, 4 Jul 2016 14:28:31 -0700 Subject: [PATCH] all dumpcanvas to be built in release BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2123633002 TBR= Review-Url: https://codereview.chromium.org/2123633002 --- include/utils/SkDumpCanvas.h | 6 +----- src/utils/SkDumpCanvas.cpp | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/include/utils/SkDumpCanvas.h b/include/utils/SkDumpCanvas.h index 2cf37c3b8c..35d694eedb 100644 --- a/include/utils/SkDumpCanvas.h +++ b/include/utils/SkDumpCanvas.h @@ -1,17 +1,15 @@ - /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ + #ifndef SkDumpCanvas_DEFINED #define SkDumpCanvas_DEFINED #include "SkCanvas.h" -#ifdef SK_DEBUG - /** This class overrides all the draw methods on SkCanvas, and formats them as text, and then sends that to a Dumper helper object. @@ -164,5 +162,3 @@ private: }; #endif - -#endif diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp index e916bd095d..7a37fcb5c1 100644 --- a/src/utils/SkDumpCanvas.cpp +++ b/src/utils/SkDumpCanvas.cpp @@ -5,10 +5,8 @@ * found in the LICENSE file. */ -#include "SkDumpCanvas.h" - -#ifdef SK_DEBUG #include "SkData.h" +#include "SkDumpCanvas.h" #include "SkPatchUtils.h" #include "SkPicture.h" #include "SkPixelRef.h" @@ -553,5 +551,3 @@ static void dumpToDebugf(const char text[], void*) { } SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, nullptr) {} - -#endif