| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 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 #ifndef SkPictureFlat_DEFINED | 8 #ifndef SkPictureFlat_DEFINED |
| 9 #define SkPictureFlat_DEFINED | 9 #define SkPictureFlat_DEFINED |
| 10 | 10 |
| 11 | 11 |
| 12 #include "SkBitmapHeap.h" | 12 #include "SkBitmapHeap.h" |
| 13 #include "SkChecksum.h" | 13 #include "SkChecksum.h" |
| 14 #include "SkChunkAlloc.h" | 14 #include "SkChunkAlloc.h" |
| 15 #include "SkReadBuffer.h" | 15 #include "SkReadBuffer.h" |
| 16 #include "SkWriteBuffer.h" | 16 #include "SkWriteBuffer.h" |
| 17 #include "SkPaint.h" | 17 #include "SkPaint.h" |
| 18 #include "SkPicture.h" | 18 #include "SkPicture.h" |
| 19 #include "SkPtrRecorder.h" | 19 #include "SkPtrRecorder.h" |
| 20 #include "SkTDynamicHash.h" | 20 #include "SkTDynamicHash.h" |
| 21 | 21 |
| 22 enum DrawType { | 22 enum DrawType { |
| 23 UNUSED, | 23 UNUSED, |
| 24 CLIP_PATH, | 24 CLIP_PATH, |
| 25 CLIP_REGION, | 25 CLIP_REGION, |
| 26 CLIP_RECT, | 26 CLIP_RECT, |
| 27 CLIP_RRECT, | 27 CLIP_RRECT, |
| 28 CONCAT, | 28 CONCAT, |
| 29 DRAW_BITMAP, | 29 DRAW_BITMAP, |
| 30 DRAW_BITMAP_MATRIX, | 30 DRAW_BITMAP_MATRIX, // deprecated, M41 was last Chromium version to write th
is to an .skp |
| 31 DRAW_BITMAP_NINE, | 31 DRAW_BITMAP_NINE, |
| 32 DRAW_BITMAP_RECT_TO_RECT, | 32 DRAW_BITMAP_RECT_TO_RECT, |
| 33 DRAW_CLEAR, | 33 DRAW_CLEAR, |
| 34 DRAW_DATA, | 34 DRAW_DATA, |
| 35 DRAW_OVAL, | 35 DRAW_OVAL, |
| 36 DRAW_PAINT, | 36 DRAW_PAINT, |
| 37 DRAW_PATH, | 37 DRAW_PATH, |
| 38 DRAW_PICTURE, | 38 DRAW_PICTURE, |
| 39 DRAW_POINTS, | 39 DRAW_POINTS, |
| 40 DRAW_POS_TEXT, | 40 DRAW_POS_TEXT, |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 bool fReady; | 547 bool fReady; |
| 548 | 548 |
| 549 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas
ed. Careful! | 549 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas
ed. Careful! |
| 550 SkTDArray<const SkFlatData*> fIndexedData; | 550 SkTDArray<const SkFlatData*> fIndexedData; |
| 551 | 551 |
| 552 // For SkFlatData -> cached SkFlatData, which has index(). | 552 // For SkFlatData -> cached SkFlatData, which has index(). |
| 553 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; | 553 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; |
| 554 }; | 554 }; |
| 555 | 555 |
| 556 #endif | 556 #endif |
| OLD | NEW |