OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
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 #include "Test.h" | |
9 #include "SkBitmap.h" | 8 #include "SkBitmap.h" |
10 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
11 #include "SkData.h" | 10 #include "SkData.h" |
12 #include "SkFlate.h" | 11 #include "SkFlate.h" |
13 #include "SkImageEncoder.h" | 12 #include "SkImageEncoder.h" |
14 #include "SkMatrix.h" | 13 #include "SkMatrix.h" |
15 #include "SkPDFCatalog.h" | 14 #include "SkPDFCatalog.h" |
16 #include "SkPDFDevice.h" | 15 #include "SkPDFDevice.h" |
17 #include "SkPDFStream.h" | 16 #include "SkPDFStream.h" |
18 #include "SkPDFTypes.h" | 17 #include "SkPDFTypes.h" |
19 #include "SkScalar.h" | 18 #include "SkScalar.h" |
20 #include "SkStream.h" | 19 #include "SkStream.h" |
21 #include "SkTypes.h" | 20 #include "SkTypes.h" |
| 21 #include "Test.h" |
22 | 22 |
23 class SkPDFTestDict : public SkPDFDict { | 23 class SkPDFTestDict : public SkPDFDict { |
24 public: | 24 public: |
25 virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects, | 25 virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects, |
26 SkTSet<SkPDFObject*>* newResourceObjects) { | 26 SkTSet<SkPDFObject*>* newResourceObjects) { |
27 for (int i = 0; i < fResources.count(); i++) { | 27 for (int i = 0; i < fResources.count(); i++) { |
28 newResourceObjects->add(fResources[i]); | 28 newResourceObjects->add(fResources[i]); |
29 fResources[i]->ref(); | 29 fResources[i]->ref(); |
30 } | 30 } |
31 } | 31 } |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 TestCatalog(reporter); | 422 TestCatalog(reporter); |
423 | 423 |
424 TestObjectRef(reporter); | 424 TestObjectRef(reporter); |
425 | 425 |
426 TestSubstitute(reporter); | 426 TestSubstitute(reporter); |
427 | 427 |
428 test_issue1083(); | 428 test_issue1083(); |
429 | 429 |
430 TestImages(reporter); | 430 TestImages(reporter); |
431 } | 431 } |
OLD | NEW |