From 2766c00fc0b6a07d46e5f74cdad45da2ef625237 Mon Sep 17 00:00:00 2001 From: mtklein Date: Fri, 26 Jun 2015 11:45:03 -0700 Subject: remove SkInstCnt It's been outclassed by Valgrind and leak sanitizer, and it seems to be causing problems for external folks building Skia. I'm not sure why our own builds seem unaffected. Latest thread: https://groups.google.com/forum/#!topic/skia-discuss/oj9FsQwwSF0 BUG=skia: Review URL: https://codereview.chromium.org/1217573002 --- experimental/PdfViewer/SkNulCanvas.h | 4 +--- experimental/PdfViewer/SkTrackDevice.h | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'experimental/PdfViewer') diff --git a/experimental/PdfViewer/SkNulCanvas.h b/experimental/PdfViewer/SkNulCanvas.h index 9fbd506d41..420a673e24 100644 --- a/experimental/PdfViewer/SkNulCanvas.h +++ b/experimental/PdfViewer/SkNulCanvas.h @@ -18,8 +18,6 @@ */ class SK_API SkNulCanvas : public SkCanvas { public: - SK_DECLARE_INST_COUNT(SkNulCanvas); - SkNulCanvas() {} explicit SkNulCanvas(SkBaseDevice* device) : SkCanvas(device) {} @@ -98,7 +96,7 @@ protected: const uint16_t indices[], int indexCount, const SkPaint& paint) override {} - + private: typedef SkCanvas INHERITED; }; diff --git a/experimental/PdfViewer/SkTrackDevice.h b/experimental/PdfViewer/SkTrackDevice.h index e3e78e3097..853b3f9cf1 100644 --- a/experimental/PdfViewer/SkTrackDevice.h +++ b/experimental/PdfViewer/SkTrackDevice.h @@ -25,8 +25,6 @@ // TODO: can this be derived from SkBaseDevice instead? class SkTrackDevice : public SkBitmapDevice { public: - SK_DECLARE_INST_COUNT(SkTrackDevice) - SkTrackDevice(const SkBitmap& bitmap) : INHERITED(bitmap, SkSurfaceProps(0, kUnknown_SkPixelGeometry)) , fTracker(NULL) { -- cgit v1.2.3