Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: include/gpu/GrOvalRenderer.h

Issue 18461007: Fix two leaks & improve leak tracking (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkDocument.h ('k') | include/lazy/SkBitmapFactory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrOvalRenderer.h
===================================================================
--- include/gpu/GrOvalRenderer.h (revision 9995)
+++ include/gpu/GrOvalRenderer.h (working copy)
@@ -27,8 +27,12 @@
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);
bool drawSimpleRRect(GrDrawTarget* target, GrContext* context, bool useAA,
« no previous file with comments | « include/core/SkDocument.h ('k') | include/lazy/SkBitmapFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698