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

Side by Side Diff: src/pdf/SkPDFCatalog.h

Issue 1038523004: SkPDF SkPDFObject::addResources signature simplified (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-03-25 (Wednesday) 15:53:41 EDT Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFBitmap.cpp ('k') | src/pdf/SkPDFCatalog.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFCatalog_DEFINED 10 #ifndef SkPDFCatalog_DEFINED
(...skipping 27 matching lines...) Expand all
38 /** Set substitute object for the passed object. 38 /** Set substitute object for the passed object.
39 Refs substitute. 39 Refs substitute.
40 */ 40 */
41 void setSubstitute(SkPDFObject* original, SkPDFObject* substitute); 41 void setSubstitute(SkPDFObject* original, SkPDFObject* substitute);
42 42
43 /** Find and return any substitute object set for the passed object. If 43 /** Find and return any substitute object set for the passed object. If
44 * there is none, return the passed object. 44 * there is none, return the passed object.
45 */ 45 */
46 SkPDFObject* getSubstituteObject(SkPDFObject* object) const; 46 SkPDFObject* getSubstituteObject(SkPDFObject* object) const;
47 47
48 const SkTDArray<SkPDFObject*>& objects() const { return fObjects; }
49
48 private: 50 private:
51 SkTDArray<SkPDFObject*> fObjects;
49 SkTHashMap<SkPDFObject*, int32_t> fObjectNumbers; 52 SkTHashMap<SkPDFObject*, int32_t> fObjectNumbers;
50 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; 53 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap;
51 }; 54 };
52 55
53 #endif 56 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFBitmap.cpp ('k') | src/pdf/SkPDFCatalog.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698