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

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

Issue 1913843002: Enable flattening of SkRecordedDrawable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix backward compatibility Created 4 years, 7 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/SkPictureData.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 DRAW_IMAGE, 71 DRAW_IMAGE,
72 DRAW_IMAGE_RECT_STRICT, // deprecated (M45) 72 DRAW_IMAGE_RECT_STRICT, // deprecated (M45)
73 DRAW_ATLAS, 73 DRAW_ATLAS,
74 DRAW_IMAGE_NINE, 74 DRAW_IMAGE_NINE,
75 DRAW_IMAGE_RECT, 75 DRAW_IMAGE_RECT,
76 76
77 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016, 77 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016,
78 SAVE_LAYER_SAVELAYERREC, 78 SAVE_LAYER_SAVELAYERREC,
79 79
80 DRAW_ANNOTATION, 80 DRAW_ANNOTATION,
81 DRAW_DRAWABLE,
82 DRAW_DRAWABLE_MATRIX,
81 83
82 LAST_DRAWTYPE_ENUM = DRAW_ANNOTATION, 84 LAST_DRAWTYPE_ENUM = DRAW_DRAWABLE_MATRIX,
83 }; 85 };
84 86
85 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 87 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
86 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 88 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
87 89
88 enum DrawVertexFlags { 90 enum DrawVertexFlags {
89 DRAW_VERTICES_HAS_TEXS = 0x01, 91 DRAW_VERTICES_HAS_TEXS = 0x01,
90 DRAW_VERTICES_HAS_COLORS = 0x02, 92 DRAW_VERTICES_HAS_COLORS = 0x02,
91 DRAW_VERTICES_HAS_INDICES = 0x04, 93 DRAW_VERTICES_HAS_INDICES = 0x04,
92 DRAW_VERTICES_HAS_XFER = 0x08, 94 DRAW_VERTICES_HAS_XFER = 0x08,
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 bool fReady; 550 bool fReady;
549 551
550 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful! 552 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful!
551 SkTDArray<const SkFlatData*> fIndexedData; 553 SkTDArray<const SkFlatData*> fIndexedData;
552 554
553 // For SkFlatData -> cached SkFlatData, which has index(). 555 // For SkFlatData -> cached SkFlatData, which has index().
554 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; 556 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash;
555 }; 557 };
556 558
557 #endif 559 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureData.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698