Chromium Code Reviews| 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; |