OLD | NEW |
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 SkPDFTypes_DEFINED | 10 #ifndef SkPDFTypes_DEFINED |
11 #define SkPDFTypes_DEFINED | 11 #define SkPDFTypes_DEFINED |
12 | 12 |
13 #include "SkMutex.h" | |
14 #include "SkRefCnt.h" | 13 #include "SkRefCnt.h" |
15 #include "SkScalar.h" | 14 #include "SkScalar.h" |
16 #include "SkString.h" | 15 #include "SkString.h" |
17 #include "SkTDArray.h" | 16 #include "SkTDArray.h" |
18 #include "SkTSet.h" | 17 #include "SkTSet.h" |
19 #include "SkTypes.h" | 18 #include "SkTypes.h" |
20 | 19 |
21 class SkPDFCatalog; | 20 class SkPDFCatalog; |
22 class SkWStream; | 21 class SkWStream; |
23 | 22 |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 376 |
378 private: | 377 private: |
379 struct Rec { | 378 struct Rec { |
380 SkPDFName* key; | 379 SkPDFName* key; |
381 SkPDFObject* value; | 380 SkPDFObject* value; |
382 Rec(SkPDFName* k, SkPDFObject* v) : key(k), value(v) {} | 381 Rec(SkPDFName* k, SkPDFObject* v) : key(k), value(v) {} |
383 }; | 382 }; |
384 | 383 |
385 static const int kMaxLen = 4095; | 384 static const int kMaxLen = 4095; |
386 | 385 |
387 mutable SkMutex fMutex; // protects modifications to fValue | |
388 SkTDArray<struct Rec> fValue; | 386 SkTDArray<struct Rec> fValue; |
389 | 387 |
390 SkPDFObject* append(SkPDFName* key, SkPDFObject* value); | 388 SkPDFObject* append(SkPDFName* key, SkPDFObject* value); |
391 | 389 |
392 typedef SkPDFObject INHERITED; | 390 typedef SkPDFObject INHERITED; |
393 }; | 391 }; |
394 | 392 |
395 #endif | 393 #endif |
OLD | NEW |