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

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

Issue 1992283002: Add drawBitmapLattice() API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rewrite picture impls Created 4 years, 4 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
« no previous file with comments | « src/core/SkNinePatchIter.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
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 #ifndef SkPictureFlat_DEFINED 7 #ifndef SkPictureFlat_DEFINED
8 #define SkPictureFlat_DEFINED 8 #define SkPictureFlat_DEFINED
9 9
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 SAVE_LAYER_SAVELAYERREC, 84 SAVE_LAYER_SAVELAYERREC,
85 85
86 DRAW_ANNOTATION, 86 DRAW_ANNOTATION,
87 DRAW_DRAWABLE, 87 DRAW_DRAWABLE,
88 DRAW_DRAWABLE_MATRIX, 88 DRAW_DRAWABLE_MATRIX,
89 DRAW_TEXT_RSXFORM, 89 DRAW_TEXT_RSXFORM,
90 90
91 TRANSLATE_Z, 91 TRANSLATE_Z,
92 92
93 DRAW_SHADOWED_PICTURE_LIGHTS, 93 DRAW_SHADOWED_PICTURE_LIGHTS,
94 DRAW_IMAGE_LATTICE,
94 95
95 LAST_DRAWTYPE_ENUM = DRAW_SHADOWED_PICTURE_LIGHTS 96 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_LATTICE
96 }; 97 };
97 98
98 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 99 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
99 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 100 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
100 101
101 enum DrawVertexFlags { 102 enum DrawVertexFlags {
102 DRAW_VERTICES_HAS_TEXS = 0x01, 103 DRAW_VERTICES_HAS_TEXS = 0x01,
103 DRAW_VERTICES_HAS_COLORS = 0x02, 104 DRAW_VERTICES_HAS_COLORS = 0x02,
104 DRAW_VERTICES_HAS_INDICES = 0x04, 105 DRAW_VERTICES_HAS_INDICES = 0x04,
105 DRAW_VERTICES_HAS_XFER = 0x08, 106 DRAW_VERTICES_HAS_XFER = 0x08,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 void setupBuffer(SkReadBuffer& buffer) const { 173 void setupBuffer(SkReadBuffer& buffer) const {
173 buffer.setFactoryPlayback(fArray, fCount); 174 buffer.setFactoryPlayback(fArray, fCount);
174 } 175 }
175 176
176 private: 177 private:
177 int fCount; 178 int fCount;
178 SkFlattenable::Factory* fArray; 179 SkFlattenable::Factory* fArray;
179 }; 180 };
180 181
181 #endif 182 #endif
OLDNEW
« no previous file with comments | « src/core/SkNinePatchIter.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698