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

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

Issue 2127233002: Added the framework for having canvas/recorder/picture record depth_set's. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: updated tests to be more rigorous about translateZ in playback Created 4 years, 5 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/SkCanvas.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 DRAW_IMAGE_NINE, 73 DRAW_IMAGE_NINE,
74 DRAW_IMAGE_RECT, 74 DRAW_IMAGE_RECT,
75 75
76 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016, 76 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016,
77 SAVE_LAYER_SAVELAYERREC, 77 SAVE_LAYER_SAVELAYERREC,
78 78
79 DRAW_ANNOTATION, 79 DRAW_ANNOTATION,
80 DRAW_DRAWABLE, 80 DRAW_DRAWABLE,
81 DRAW_DRAWABLE_MATRIX, 81 DRAW_DRAWABLE_MATRIX,
82 82
83 LAST_DRAWTYPE_ENUM = DRAW_DRAWABLE_MATRIX, 83 TRANSLATE_Z,
84
85 LAST_DRAWTYPE_ENUM = TRANSLATE_Z
84 }; 86 };
85 87
86 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 88 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
87 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 89 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
88 90
89 enum DrawVertexFlags { 91 enum DrawVertexFlags {
90 DRAW_VERTICES_HAS_TEXS = 0x01, 92 DRAW_VERTICES_HAS_TEXS = 0x01,
91 DRAW_VERTICES_HAS_COLORS = 0x02, 93 DRAW_VERTICES_HAS_COLORS = 0x02,
92 DRAW_VERTICES_HAS_INDICES = 0x04, 94 DRAW_VERTICES_HAS_INDICES = 0x04,
93 DRAW_VERTICES_HAS_XFER = 0x08, 95 DRAW_VERTICES_HAS_XFER = 0x08,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void setupBuffer(SkReadBuffer& buffer) const { 158 void setupBuffer(SkReadBuffer& buffer) const {
157 buffer.setFactoryPlayback(fArray, fCount); 159 buffer.setFactoryPlayback(fArray, fCount);
158 } 160 }
159 161
160 private: 162 private:
161 int fCount; 163 int fCount;
162 SkFlattenable::Factory* fArray; 164 SkFlattenable::Factory* fArray;
163 }; 165 };
164 166
165 #endif 167 #endif
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698