From ef284a84f503adfd08ee52b5aee142c548698ea4 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 11 Jul 2013 22:29:29 +0000 Subject: The two leaks are: missing unrefs in megalooper GM missing reset capability in oval renderer This CL also expands the instance counting system to some recently adding classes (e.g., SkFontStyleSet) R=bsalomon@google.com, jvanverth@google.com Author: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/18461007 git-svn-id: http://skia.googlecode.com/svn/trunk@10030 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/gpu/GrOvalRenderer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/gpu/GrOvalRenderer.h') diff --git a/include/gpu/GrOvalRenderer.h b/include/gpu/GrOvalRenderer.h index a6ec52c7a8..a9d41b40e0 100644 --- a/include/gpu/GrOvalRenderer.h +++ b/include/gpu/GrOvalRenderer.h @@ -27,7 +27,11 @@ public: SK_DECLARE_INST_COUNT(GrOvalRenderer) GrOvalRenderer() : fRRectIndexBuffer(NULL) {} - ~GrOvalRenderer() {} + ~GrOvalRenderer() { + this->reset(); + } + + void reset(); bool drawOval(GrDrawTarget* target, const GrContext* context, bool useAA, const GrRect& oval, const SkStrokeRec& stroke); -- cgit v1.2.3