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

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

Issue 494683003: Implement SkPicture::hasText() for SkRecord backend. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: always fill fHasText Created 6 years, 4 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/SkPicture.cpp ('k') | tests/PictureTest.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 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 M(DrawBitmapRectToRect) \ 56 M(DrawBitmapRectToRect) \
57 M(DrawDRRect) \ 57 M(DrawDRRect) \
58 M(DrawOval) \ 58 M(DrawOval) \
59 M(DrawPaint) \ 59 M(DrawPaint) \
60 M(DrawPath) \ 60 M(DrawPath) \
61 M(DrawPatch) \ 61 M(DrawPatch) \
62 M(DrawPicture) \ 62 M(DrawPicture) \
63 M(DrawPoints) \ 63 M(DrawPoints) \
64 M(DrawPosText) \ 64 M(DrawPosText) \
65 M(DrawPosTextH) \ 65 M(DrawPosTextH) \
66 M(DrawText) \
67 M(DrawTextOnPath) \
66 M(DrawRRect) \ 68 M(DrawRRect) \
67 M(DrawRect) \ 69 M(DrawRect) \
68 M(DrawSprite) \ 70 M(DrawSprite) \
69 M(DrawText) \
70 M(DrawTextOnPath) \
71 M(DrawVertices) 71 M(DrawVertices)
72 72
73 // Defines SkRecords::Type, an enum of all record types. 73 // Defines SkRecords::Type, an enum of all record types.
74 #define ENUM(T) T##_Type, 74 #define ENUM(T) T##_Type,
75 enum Type { SK_RECORD_TYPES(ENUM) }; 75 enum Type { SK_RECORD_TYPES(ENUM) };
76 #undef ENUM 76 #undef ENUM
77 77
78 // Macros to make it easier to define a record for a draw call with 0 args, 1 ar gs, 2 args, etc. 78 // Macros to make it easier to define a record for a draw call with 0 args, 1 ar gs, 2 args, etc.
79 // These should be clearer when you look at their use below. 79 // These should be clearer when you look at their use below.
80 #define RECORD0(T) \ 80 #define RECORD0(T) \
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 #undef RECORD0 311 #undef RECORD0
312 #undef RECORD1 312 #undef RECORD1
313 #undef RECORD2 313 #undef RECORD2
314 #undef RECORD3 314 #undef RECORD3
315 #undef RECORD4 315 #undef RECORD4
316 #undef RECORD5 316 #undef RECORD5
317 317
318 } // namespace SkRecords 318 } // namespace SkRecords
319 319
320 #endif//SkRecords_DEFINED 320 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPicture.cpp ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698