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

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

Issue 1228083004: add src-rect-constraint to drawImageRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 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/SkMiniRecorder.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 11 matching lines...) Expand all
22 enum DrawType { 22 enum DrawType {
23 UNUSED, 23 UNUSED,
24 CLIP_PATH, 24 CLIP_PATH,
25 CLIP_REGION, 25 CLIP_REGION,
26 CLIP_RECT, 26 CLIP_RECT,
27 CLIP_RRECT, 27 CLIP_RRECT,
28 CONCAT, 28 CONCAT,
29 DRAW_BITMAP, 29 DRAW_BITMAP,
30 DRAW_BITMAP_MATRIX, // deprecated, M41 was last Chromium version to write th is to an .skp 30 DRAW_BITMAP_MATRIX, // deprecated, M41 was last Chromium version to write th is to an .skp
31 DRAW_BITMAP_NINE, 31 DRAW_BITMAP_NINE,
32 DRAW_BITMAP_RECT_TO_RECT, 32 DRAW_BITMAP_RECT,
33 DRAW_CLEAR, 33 DRAW_CLEAR,
34 DRAW_DATA, 34 DRAW_DATA,
35 DRAW_OVAL, 35 DRAW_OVAL,
36 DRAW_PAINT, 36 DRAW_PAINT,
37 DRAW_PATH, 37 DRAW_PATH,
38 DRAW_PICTURE, 38 DRAW_PICTURE,
39 DRAW_POINTS, 39 DRAW_POINTS,
40 DRAW_POS_TEXT, 40 DRAW_POS_TEXT,
41 DRAW_POS_TEXT_TOP_BOTTOM, // fast variant of DRAW_POS_TEXT 41 DRAW_POS_TEXT_TOP_BOTTOM, // fast variant of DRAW_POS_TEXT
42 DRAW_POS_TEXT_H, 42 DRAW_POS_TEXT_H,
(...skipping 20 matching lines...) Expand all
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, 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 77
77 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_NINE 78 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_RECT
78 }; 79 };
79 80
80 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* 81 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP*
81 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; 82 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1;
82 83
83 enum DrawVertexFlags { 84 enum DrawVertexFlags {
84 DRAW_VERTICES_HAS_TEXS = 0x01, 85 DRAW_VERTICES_HAS_TEXS = 0x01,
85 DRAW_VERTICES_HAS_COLORS = 0x02, 86 DRAW_VERTICES_HAS_COLORS = 0x02,
86 DRAW_VERTICES_HAS_INDICES = 0x04, 87 DRAW_VERTICES_HAS_INDICES = 0x04,
87 DRAW_VERTICES_HAS_XFER = 0x08, 88 DRAW_VERTICES_HAS_XFER = 0x08,
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 bool fReady; 557 bool fReady;
557 558
558 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful! 559 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas ed. Careful!
559 SkTDArray<const SkFlatData*> fIndexedData; 560 SkTDArray<const SkFlatData*> fIndexedData;
560 561
561 // For SkFlatData -> cached SkFlatData, which has index(). 562 // For SkFlatData -> cached SkFlatData, which has index().
562 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; 563 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash;
563 }; 564 };
564 565
565 #endif 566 #endif
OLDNEW
« no previous file with comments | « src/core/SkMiniRecorder.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698