| 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 break; | 374 break; |
| 375 default: | 375 default: |
| 376 concat(matrix); | 376 concat(matrix); |
| 377 } | 377 } |
| 378 this->SkCanvas::didConcat(matrix); | 378 this->SkCanvas::didConcat(matrix); |
| 379 } | 379 } |
| 380 | 380 |
| 381 void LoggingCanvas::willSave() | 381 void LoggingCanvas::willSave() |
| 382 { | 382 { |
| 383 AutoLogger logger(this); | 383 AutoLogger logger(this); |
| 384 RefPtr<JSONObject> params = logger.logItemWithParams("save"); | 384 RefPtr<JSONObject> params = logger.logItem("save"); |
| 385 this->SkCanvas::willSave(); | 385 this->SkCanvas::willSave(); |
| 386 } | 386 } |
| 387 | 387 |
| 388 SkCanvas::SaveLayerStrategy LoggingCanvas::willSaveLayer(const SkRect* bounds, c
onst SkPaint* paint, SaveFlags flags) | 388 SkCanvas::SaveLayerStrategy LoggingCanvas::willSaveLayer(const SkRect* bounds, c
onst SkPaint* paint, SaveFlags flags) |
| 389 { | 389 { |
| 390 AutoLogger logger(this); | 390 AutoLogger logger(this); |
| 391 RefPtr<JSONObject> params = logger.logItemWithParams("saveLayer"); | 391 RefPtr<JSONObject> params = logger.logItemWithParams("saveLayer"); |
| 392 if (bounds) | 392 if (bounds) |
| 393 params->setObject("bounds", objectForSkRect(*bounds)); | 393 params->setObject("bounds", objectForSkRect(*bounds)); |
| 394 params->setObject("paint", objectForSkPaint(*paint)); | 394 params->setObject("paint", objectForSkPaint(*paint)); |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 SkUnichar* textData = dataVector.data(); | 879 SkUnichar* textData = dataVector.data(); |
| 880 paint.glyphsToUnichars(static_cast<const uint16_t*>(text), byteLength /
2, textData); | 880 paint.glyphsToUnichars(static_cast<const uint16_t*>(text), byteLength /
2, textData); |
| 881 return WTF::UTF32LittleEndianEncoding().decode(reinterpret_cast<const ch
ar*>(textData), byteLength * 2); | 881 return WTF::UTF32LittleEndianEncoding().decode(reinterpret_cast<const ch
ar*>(textData), byteLength * 2); |
| 882 } | 882 } |
| 883 default: | 883 default: |
| 884 ASSERT_NOT_REACHED(); | 884 ASSERT_NOT_REACHED(); |
| 885 return "?"; | 885 return "?"; |
| 886 } | 886 } |
| 887 } | 887 } |
| 888 } | 888 } |
| OLD | NEW |