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

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: 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_NINE
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,
(...skipping 470 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

Powered by Google App Engine
This is Rietveld 408576698