OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 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 #include "SkPictureFlat.h" | 10 #include "SkPictureFlat.h" |
11 #include "SkPicturePlayback.h" | 11 #include "SkPicturePlayback.h" |
12 #include "SkPictureRecord.h" | 12 #include "SkPictureRecord.h" |
13 | 13 |
14 #include "SkBitmapDevice.h" | 14 #include "SkBitmapDevice.h" |
15 #include "SkCanvas.h" | 15 #include "SkCanvas.h" |
16 #include "SkChunkAlloc.h" | 16 #include "SkChunkAlloc.h" |
17 #include "SkPicture.h" | 17 #include "SkPicture.h" |
18 #include "SkRegion.h" | 18 #include "SkRegion.h" |
19 #include "SkStream.h" | 19 #include "SkStream.h" |
20 #include "SkTDArray.h" | 20 #include "SkTDArray.h" |
21 #include "SkTSearch.h" | 21 #include "SkTSearch.h" |
22 #include "SkTime.h" | 22 #include "SkTime.h" |
23 | 23 |
24 #include "SkReader32.h" | 24 #include "SkReader32.h" |
25 #include "SkWriter32.h" | 25 #include "SkWriter32.h" |
26 #include "SkRTree.h" | 26 #include "SkRTree.h" |
27 #include "SkBBoxHierarchyRecord.h" | 27 #include "SkBBoxHierarchyRecord.h" |
28 | 28 |
29 SK_DEFINE_INST_COUNT(SkPicture) | |
30 | |
31 #define DUMP_BUFFER_SIZE 65536 | 29 #define DUMP_BUFFER_SIZE 65536 |
32 | 30 |
33 //#define ENABLE_TIME_DRAW // dumps milliseconds for each draw | 31 //#define ENABLE_TIME_DRAW // dumps milliseconds for each draw |
34 | 32 |
35 | 33 |
36 #ifdef SK_DEBUG | 34 #ifdef SK_DEBUG |
37 // enable SK_DEBUG_TRACE to trace DrawType elements when | 35 // enable SK_DEBUG_TRACE to trace DrawType elements when |
38 // recorded and played back | 36 // recorded and played back |
39 // #define SK_DEBUG_TRACE | 37 // #define SK_DEBUG_TRACE |
40 // enable SK_DEBUG_SIZE to see the size of picture components | 38 // enable SK_DEBUG_SIZE to see the size of picture components |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 } | 368 } |
371 | 369 |
372 #ifdef SK_BUILD_FOR_ANDROID | 370 #ifdef SK_BUILD_FOR_ANDROID |
373 void SkPicture::abortPlayback() { | 371 void SkPicture::abortPlayback() { |
374 if (NULL == fPlayback) { | 372 if (NULL == fPlayback) { |
375 return; | 373 return; |
376 } | 374 } |
377 fPlayback->abort(); | 375 fPlayback->abort(); |
378 } | 376 } |
379 #endif | 377 #endif |
OLD | NEW |