| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkPDFResourceDict_DEFINED | 8 #ifndef SkPDFResourceDict_DEFINED |
| 9 #define SkPDFResourceDict_DEFINED | 9 #define SkPDFResourceDict_DEFINED |
| 10 | 10 |
| 11 #include "SkPDFTypes.h" | 11 #include "SkRefCnt.h" |
| 12 #include "SkTDArray.h" | 12 #include "SkTDArray.h" |
| 13 #include "SkTypes.h" | 13 |
| 14 class SkPDFDict; |
| 15 class SkPDFObject; |
| 14 | 16 |
| 15 /** \class SkPDFResourceDict | 17 /** \class SkPDFResourceDict |
| 16 | 18 |
| 17 A resource dictionary, which maintains the relevant sub-dicts and | 19 A resource dictionary, which maintains the relevant sub-dicts and |
| 18 allows generation of a list of referenced SkPDFObjects inserted with | 20 allows generation of a list of referenced SkPDFObjects inserted with |
| 19 insertResourceAsRef. | 21 insertResourceAsRef. |
| 20 */ | 22 */ |
| 21 class SkPDFResourceDict { | 23 class SkPDFResourceDict { |
| 22 public: | 24 public: |
| 23 enum SkPDFResourceType { | 25 enum SkPDFResourceType { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 47 * dict. | 49 * dict. |
| 48 * | 50 * |
| 49 * @param type The type of resource being entered, like | 51 * @param type The type of resource being entered, like |
| 50 * kPattern_ResourceType or kExtGState_ResourceType. | 52 * kPattern_ResourceType or kExtGState_ResourceType. |
| 51 * @param key The resource key, should be unique within its type. | 53 * @param key The resource key, should be unique within its type. |
| 52 */ | 54 */ |
| 53 static SkString getResourceName(SkPDFResourceType type, int key); | 55 static SkString getResourceName(SkPDFResourceType type, int key); |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 #endif | 58 #endif |
| OLD | NEW |