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

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

Issue 1758023003: Move annotations to canvas virtual (patchset #8 id:140001 of https://codereview.chromium.org/174410… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: manual rebase Created 4 years, 9 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/SkPaint.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016, 78 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016,
79 SAVE_LAYER_SAVELAYERREC, 79 SAVE_LAYER_SAVELAYERREC,
80 80
81 LAST_DRAWTYPE_ENUM = SAVE_LAYER_SAVELAYERREC, 81 DRAW_ANNOTATION,
82
83 LAST_DRAWTYPE_ENUM = DRAW_ANNOTATION,
82 }; 84 };
83 85
84 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 86 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
85 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 87 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
86 88
87 enum DrawVertexFlags { 89 enum DrawVertexFlags {
88 DRAW_VERTICES_HAS_TEXS = 0x01, 90 DRAW_VERTICES_HAS_TEXS = 0x01,
89 DRAW_VERTICES_HAS_COLORS = 0x02, 91 DRAW_VERTICES_HAS_COLORS = 0x02,
90 DRAW_VERTICES_HAS_INDICES = 0x04, 92 DRAW_VERTICES_HAS_INDICES = 0x04,
91 DRAW_VERTICES_HAS_XFER = 0x08, 93 DRAW_VERTICES_HAS_XFER = 0x08,
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 bool fReady; 565 bool fReady;
564 566
565 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful! 567 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful!
566 SkTDArray<const SkFlatData*> fIndexedData; 568 SkTDArray<const SkFlatData*> fIndexedData;
567 569
568 // For SkFlatData -> cached SkFlatData, which has index(). 570 // For SkFlatData -> cached SkFlatData, which has index().
569 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; 571 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash;
570 }; 572 };
571 573
572 #endif 574 #endif
OLDNEW
« no previous file with comments | « src/core/SkPaint.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698