OLD | NEW |
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 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
9 #include "SkColor.h" | 9 #include "SkColor.h" |
10 #include "SkFlattenableBuffers.h" | 10 #include "SkFlattenableBuffers.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 for (int i = 0; i < fCount; i++) { | 262 for (int i = 0; i < fCount; i++) { |
263 str->appendf("%d: ", i); | 263 str->appendf("%d: ", i); |
264 | 264 |
265 str->append("flagsMask: ("); | 265 str->append("flagsMask: ("); |
266 if (0 == rec->fInfo.fFlagsMask) { | 266 if (0 == rec->fInfo.fFlagsMask) { |
267 str->append("None"); | 267 str->append("None"); |
268 } else { | 268 } else { |
269 bool needSeparator = false; | 269 bool needSeparator = false; |
270 SkAddFlagToString(str, SkToBool(SkPaint::kAntiAlias_Flag & rec->fInf
o.fFlagsMask), | 270 SkAddFlagToString(str, SkToBool(SkPaint::kAntiAlias_Flag & rec->fInf
o.fFlagsMask), |
271 "AntiAlias", &needSeparator); | 271 "AntiAlias", &needSeparator); |
272 SkAddFlagToString(str, SkToBool(SkPaint::kFilterBitmap_Flag & rec->f
Info.fFlagsMask), | 272 // SkAddFlagToString(str, SkToBool(SkPaint::kFilterBitmap_Flag & rec-
>fInfo.fFlagsMask), "FilterBitmap", &needSeparator); |
273 "FilterBitmap", &needSeparator); | |
274 SkAddFlagToString(str, SkToBool(SkPaint::kDither_Flag & rec->fInfo.f
FlagsMask), | 273 SkAddFlagToString(str, SkToBool(SkPaint::kDither_Flag & rec->fInfo.f
FlagsMask), |
275 "Dither", &needSeparator); | 274 "Dither", &needSeparator); |
276 SkAddFlagToString(str, SkToBool(SkPaint::kUnderlineText_Flag & rec->
fInfo.fFlagsMask), | 275 SkAddFlagToString(str, SkToBool(SkPaint::kUnderlineText_Flag & rec->
fInfo.fFlagsMask), |
277 "UnderlineText", &needSeparator); | 276 "UnderlineText", &needSeparator); |
278 SkAddFlagToString(str, SkToBool(SkPaint::kStrikeThruText_Flag & rec-
>fInfo.fFlagsMask), | 277 SkAddFlagToString(str, SkToBool(SkPaint::kStrikeThruText_Flag & rec-
>fInfo.fFlagsMask), |
279 "StrikeThruText", &needSeparator); | 278 "StrikeThruText", &needSeparator); |
280 SkAddFlagToString(str, SkToBool(SkPaint::kFakeBoldText_Flag & rec->f
Info.fFlagsMask), | 279 SkAddFlagToString(str, SkToBool(SkPaint::kFakeBoldText_Flag & rec->f
Info.fFlagsMask), |
281 "FakeBoldText", &needSeparator); | 280 "FakeBoldText", &needSeparator); |
282 SkAddFlagToString(str, SkToBool(SkPaint::kLinearText_Flag & rec->fIn
fo.fFlagsMask), | 281 SkAddFlagToString(str, SkToBool(SkPaint::kLinearText_Flag & rec->fIn
fo.fFlagsMask), |
283 "LinearText", &needSeparator); | 282 "LinearText", &needSeparator); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 str->append("true "); | 341 str->append("true "); |
343 } else { | 342 } else { |
344 str->append("false "); | 343 str->append("false "); |
345 } | 344 } |
346 | 345 |
347 rec->fPaint.toString(str); | 346 rec->fPaint.toString(str); |
348 rec = rec->fNext; | 347 rec = rec->fNext; |
349 } | 348 } |
350 } | 349 } |
351 #endif | 350 #endif |
OLD | NEW |