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

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

Issue 830083002: remove unused drawData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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/SkRecorder.cpp ('k') | src/pipe/SkGPipePriv.h » ('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 2014 Google Inc. 2 * Copyright 2014 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 7
8 #ifndef SkRecords_DEFINED 8 #ifndef SkRecords_DEFINED
9 #define SkRecords_DEFINED 9 #define SkRecords_DEFINED
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 M(DrawPicture) \ 54 M(DrawPicture) \
55 M(DrawPoints) \ 55 M(DrawPoints) \
56 M(DrawPosText) \ 56 M(DrawPosText) \
57 M(DrawPosTextH) \ 57 M(DrawPosTextH) \
58 M(DrawText) \ 58 M(DrawText) \
59 M(DrawTextOnPath) \ 59 M(DrawTextOnPath) \
60 M(DrawRRect) \ 60 M(DrawRRect) \
61 M(DrawRect) \ 61 M(DrawRect) \
62 M(DrawSprite) \ 62 M(DrawSprite) \
63 M(DrawTextBlob) \ 63 M(DrawTextBlob) \
64 M(DrawData) \
65 M(DrawVertices) 64 M(DrawVertices)
66 65
67 // Defines SkRecords::Type, an enum of all record types. 66 // Defines SkRecords::Type, an enum of all record types.
68 #define ENUM(T) T##_Type, 67 #define ENUM(T) T##_Type,
69 enum Type { SK_RECORD_TYPES(ENUM) }; 68 enum Type { SK_RECORD_TYPES(ENUM) };
70 #undef ENUM 69 #undef ENUM
71 70
72 // Macros to make it easier to define a record for a draw call with 0 args, 1 ar gs, 2 args, etc. 71 // Macros to make it easier to define a record for a draw call with 0 args, 1 ar gs, 2 args, etc.
73 // These should be clearer when you look at their use below. 72 // These should be clearer when you look at their use below.
74 #define RECORD0(T) \ 73 #define RECORD0(T) \
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 RECORD4(DrawTextBlob, SkPaint, paint, 297 RECORD4(DrawTextBlob, SkPaint, paint,
299 RefBox<const SkTextBlob>, blob, 298 RefBox<const SkTextBlob>, blob,
300 SkScalar, x, 299 SkScalar, x,
301 SkScalar, y); 300 SkScalar, y);
302 RECORD5(DrawTextOnPath, SkPaint, paint, 301 RECORD5(DrawTextOnPath, SkPaint, paint,
303 PODArray<char>, text, 302 PODArray<char>, text,
304 size_t, byteLength, 303 size_t, byteLength,
305 BoundedPath, path, 304 BoundedPath, path,
306 TypedMatrix, matrix); 305 TypedMatrix, matrix);
307 306
308 RECORD2(DrawData, PODArray<char>, data, size_t, length);
309
310 RECORD5(DrawPatch, SkPaint, paint, 307 RECORD5(DrawPatch, SkPaint, paint,
311 PODArray<SkPoint>, cubics, 308 PODArray<SkPoint>, cubics,
312 PODArray<SkColor>, colors, 309 PODArray<SkColor>, colors,
313 PODArray<SkPoint>, texCoords, 310 PODArray<SkPoint>, texCoords,
314 RefBox<SkXfermode>, xmode); 311 RefBox<SkXfermode>, xmode);
315 312
316 // This guy is so ugly we just write it manually. 313 // This guy is so ugly we just write it manually.
317 struct DrawVertices { 314 struct DrawVertices {
318 static const Type kType = DrawVertices_Type; 315 static const Type kType = DrawVertices_Type;
319 316
(...skipping 30 matching lines...) Expand all
350 #undef RECORD0 347 #undef RECORD0
351 #undef RECORD1 348 #undef RECORD1
352 #undef RECORD2 349 #undef RECORD2
353 #undef RECORD3 350 #undef RECORD3
354 #undef RECORD4 351 #undef RECORD4
355 #undef RECORD5 352 #undef RECORD5
356 353
357 } // namespace SkRecords 354 } // namespace SkRecords
358 355
359 #endif//SkRecords_DEFINED 356 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | src/pipe/SkGPipePriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698