Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Side by Side Diff: src/core/SkPictureFlat.h

Issue 1199473002: change old picture serialization to really handle images (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address scroggo comments Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 END_COMMENT_GROUP, // deprecated (M44) 62 END_COMMENT_GROUP, // deprecated (M44)
63 63
64 // new ops -- feel free to re-alphabetize on next version bump 64 // new ops -- feel free to re-alphabetize on next version bump
65 DRAW_DRRECT, 65 DRAW_DRRECT,
66 PUSH_CULL, // deprecated, M41 was last Chromium version to write this to an .skp 66 PUSH_CULL, // deprecated, M41 was last Chromium version to write this to an .skp
67 POP_CULL, // deprecated, M41 was last Chromium version to write this to an .skp 67 POP_CULL, // deprecated, M41 was last Chromium version to write this to an .skp
68 68
69 DRAW_PATCH, // could not add in aphabetical order 69 DRAW_PATCH, // could not add in aphabetical order
70 DRAW_PICTURE_MATRIX_PAINT, 70 DRAW_PICTURE_MATRIX_PAINT,
71 DRAW_TEXT_BLOB, 71 DRAW_TEXT_BLOB,
72 DRAW_IMAGE,
73 DRAW_IMAGE_RECT,
72 74
73 LAST_DRAWTYPE_ENUM = DRAW_TEXT_BLOB 75 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_RECT
74 }; 76 };
75 77
76 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 78 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
77 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 79 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
78 80
79 enum DrawVertexFlags { 81 enum DrawVertexFlags {
80 DRAW_VERTICES_HAS_TEXS = 0x01, 82 DRAW_VERTICES_HAS_TEXS = 0x01,
81 DRAW_VERTICES_HAS_COLORS = 0x02, 83 DRAW_VERTICES_HAS_COLORS = 0x02,
82 DRAW_VERTICES_HAS_INDICES = 0x04, 84 DRAW_VERTICES_HAS_INDICES = 0x04,
83 DRAW_VERTICES_HAS_XFER = 0x08, 85 DRAW_VERTICES_HAS_XFER = 0x08,
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 bool fReady; 549 bool fReady;
548 550
549 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful! 551 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful!
550 SkTDArray<const SkFlatData*> fIndexedData; 552 SkTDArray<const SkFlatData*> fIndexedData;
551 553
552 // For SkFlatData -> cached SkFlatData, which has index(). 554 // For SkFlatData -> cached SkFlatData, which has index().
553 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; 555 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash;
554 }; 556 };
555 557
556 #endif 558 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698