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

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

Issue 1533953002: change signature for virtual related to saveLayer, passing SaveLayerRec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update comment Created 5 years 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 /* 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 DRAW_RECT, 44 DRAW_RECT,
45 DRAW_RRECT, 45 DRAW_RRECT,
46 DRAW_SPRITE, 46 DRAW_SPRITE,
47 DRAW_TEXT, 47 DRAW_TEXT,
48 DRAW_TEXT_ON_PATH, 48 DRAW_TEXT_ON_PATH,
49 DRAW_TEXT_TOP_BOTTOM, // fast variant of DRAW_TEXT 49 DRAW_TEXT_TOP_BOTTOM, // fast variant of DRAW_TEXT
50 DRAW_VERTICES, 50 DRAW_VERTICES,
51 RESTORE, 51 RESTORE,
52 ROTATE, 52 ROTATE,
53 SAVE, 53 SAVE,
54 SAVE_LAYER, 54 SAVE_LAYER_SAVEFLAGS_DEPRECATED,
55 SCALE, 55 SCALE,
56 SET_MATRIX, 56 SET_MATRIX,
57 SKEW, 57 SKEW,
58 TRANSLATE, 58 TRANSLATE,
59 NOOP, 59 NOOP,
60 BEGIN_COMMENT_GROUP, // deprecated (M44) 60 BEGIN_COMMENT_GROUP, // deprecated (M44)
61 COMMENT, // deprecated (M44) 61 COMMENT, // deprecated (M44)
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, 72 DRAW_IMAGE,
73 DRAW_IMAGE_RECT_STRICT, // deprecated (M45) 73 DRAW_IMAGE_RECT_STRICT, // deprecated (M45)
74 DRAW_ATLAS, 74 DRAW_ATLAS,
75 DRAW_IMAGE_NINE, 75 DRAW_IMAGE_NINE,
76 DRAW_IMAGE_RECT, 76 DRAW_IMAGE_RECT,
77 77
78 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_RECT 78 SAVE_LAYER_SAVELAYERFLAGS,
79
80 LAST_DRAWTYPE_ENUM = SAVE_LAYER_SAVELAYERFLAGS,
79 }; 81 };
80 82
81 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 83 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
82 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 84 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
83 85
84 enum DrawVertexFlags { 86 enum DrawVertexFlags {
85 DRAW_VERTICES_HAS_TEXS = 0x01, 87 DRAW_VERTICES_HAS_TEXS = 0x01,
86 DRAW_VERTICES_HAS_COLORS = 0x02, 88 DRAW_VERTICES_HAS_COLORS = 0x02,
87 DRAW_VERTICES_HAS_INDICES = 0x04, 89 DRAW_VERTICES_HAS_INDICES = 0x04,
88 DRAW_VERTICES_HAS_XFER = 0x08, 90 DRAW_VERTICES_HAS_XFER = 0x08,
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 bool fReady; 555 bool fReady;
554 556
555 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful! 557 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful!
556 SkTDArray<const SkFlatData*> fIndexedData; 558 SkTDArray<const SkFlatData*> fIndexedData;
557 559
558 // For SkFlatData -> cached SkFlatData, which has index(). 560 // For SkFlatData -> cached SkFlatData, which has index().
559 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; 561 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash;
560 }; 562 };
561 563
562 #endif 564 #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