| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 appendFlagToString(&flagsString, paint.isUnderlineText(), "UnderlinText"); | 325 appendFlagToString(&flagsString, paint.isUnderlineText(), "UnderlinText"); |
| 326 appendFlagToString(&flagsString, paint.isStrikeThruText(), "StrikeThruText")
; | 326 appendFlagToString(&flagsString, paint.isStrikeThruText(), "StrikeThruText")
; |
| 327 appendFlagToString(&flagsString, paint.isFakeBoldText(), "FakeBoldText"); | 327 appendFlagToString(&flagsString, paint.isFakeBoldText(), "FakeBoldText"); |
| 328 appendFlagToString(&flagsString, paint.isLinearText(), "LinearText"); | 328 appendFlagToString(&flagsString, paint.isLinearText(), "LinearText"); |
| 329 appendFlagToString(&flagsString, paint.isSubpixelText(), "SubpixelText"); | 329 appendFlagToString(&flagsString, paint.isSubpixelText(), "SubpixelText"); |
| 330 appendFlagToString(&flagsString, paint.isDevKernText(), "DevKernText"); | 330 appendFlagToString(&flagsString, paint.isDevKernText(), "DevKernText"); |
| 331 appendFlagToString(&flagsString, paint.isLCDRenderText(), "LCDRenderText"); | 331 appendFlagToString(&flagsString, paint.isLCDRenderText(), "LCDRenderText"); |
| 332 appendFlagToString(&flagsString, paint.isEmbeddedBitmapText(), "EmbeddedBitm
apText"); | 332 appendFlagToString(&flagsString, paint.isEmbeddedBitmapText(), "EmbeddedBitm
apText"); |
| 333 appendFlagToString(&flagsString, paint.isAutohinted(), "Autohinted"); | 333 appendFlagToString(&flagsString, paint.isAutohinted(), "Autohinted"); |
| 334 appendFlagToString(&flagsString, paint.isVerticalText(), "VerticalText"); | 334 appendFlagToString(&flagsString, paint.isVerticalText(), "VerticalText"); |
| 335 appendFlagToString(&flagsString, paint.getFlags() & SkPaint::kGenA8FromLCD_F
lag, "GenA8FromLCD"); | |
| 336 return flagsString; | 335 return flagsString; |
| 337 } | 336 } |
| 338 | 337 |
| 339 String filterQualityName(SkFilterQuality filterQuality) | 338 String filterQualityName(SkFilterQuality filterQuality) |
| 340 { | 339 { |
| 341 switch (filterQuality) { | 340 switch (filterQuality) { |
| 342 case kNone_SkFilterQuality: return "None"; | 341 case kNone_SkFilterQuality: return "None"; |
| 343 case kLow_SkFilterQuality: return "Low"; | 342 case kLow_SkFilterQuality: return "Low"; |
| 344 case kMedium_SkFilterQuality: return "Medium"; | 343 case kMedium_SkFilterQuality: return "Medium"; |
| 345 case kHigh_SkFilterQuality: return "High"; | 344 case kHigh_SkFilterQuality: return "High"; |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 return pictureAsJSON->toPrettyJSONString(); | 873 return pictureAsJSON->toPrettyJSONString(); |
| 875 } | 874 } |
| 876 | 875 |
| 877 void showSkPicture(const SkPicture* picture) | 876 void showSkPicture(const SkPicture* picture) |
| 878 { | 877 { |
| 879 WTFLogAlways("%s\n", pictureAsDebugString(picture).utf8().data()); | 878 WTFLogAlways("%s\n", pictureAsDebugString(picture).utf8().data()); |
| 880 } | 879 } |
| 881 #endif | 880 #endif |
| 882 | 881 |
| 883 } // namespace blink | 882 } // namespace blink |
| OLD | NEW |