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

Unified Diff: src/pdf/SkPDFGraphicState.h

Issue 12387086: Unwind PDFObject destructor calls into heap instead of stack. Notice: the order of the destructors … (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 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
Index: src/pdf/SkPDFGraphicState.h
===================================================================
--- src/pdf/SkPDFGraphicState.h (revision 7963)
+++ src/pdf/SkPDFGraphicState.h (working copy)
@@ -64,6 +64,16 @@
*/
static SkPDFGraphicState* GetNoSMaskGraphicState();
+protected:
+ virtual void trasferPDFObjecsOwnership(SkTDArray<SkPDFObject*>* list) {
Tom Hudson 2013/03/07 13:54:37 Spelling errors: transfer, Objects
edisonn 2013/03/07 16:51:30 Done.
+ for (int i = 0 ; i < fResources.count(); ++i) {
+ list->push(fResources[i]);
+ }
+ fResources.remove(0, fResources.count());
+
+ SkPDFDict::trasferPDFObjecsOwnership(list);
+ }
+
private:
const SkPaint fPaint;
SkTDArray<SkPDFObject*> fResources;
« no previous file with comments | « src/pdf/SkPDFFormXObject.cpp ('k') | src/pdf/SkPDFStream.h » ('j') | src/pdf/SkPDFTypes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698