| 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "platform/graphics/LoggingCanvas.h" | 31 #include "platform/graphics/LoggingCanvas.h" |
| 32 | 32 |
| 33 #include "platform/geometry/IntSize.h" | 33 #include "platform/geometry/IntSize.h" |
| 34 #include "platform/graphics/ImageBuffer.h" | 34 #include "platform/graphics/ImageBuffer.h" |
| 35 #include "platform/graphics/skia/ImagePixelLocker.h" | 35 #include "platform/graphics/skia/ImagePixelLocker.h" |
| 36 #include "platform/graphics/skia/SkiaUtils.h" | 36 #include "platform/graphics/skia/SkiaUtils.h" |
| 37 #include "platform/image-encoders/PNGImageEncoder.h" | 37 #include "platform/image-encoders/PNGImageEncoder.h" |
| 38 #include "platform/wtf/HexNumber.h" |
| 39 #include "platform/wtf/text/Base64.h" |
| 40 #include "platform/wtf/text/TextEncoding.h" |
| 38 #include "third_party/skia/include/core/SkImage.h" | 41 #include "third_party/skia/include/core/SkImage.h" |
| 39 #include "third_party/skia/include/core/SkImageInfo.h" | 42 #include "third_party/skia/include/core/SkImageInfo.h" |
| 40 #include "third_party/skia/include/core/SkPaint.h" | 43 #include "third_party/skia/include/core/SkPaint.h" |
| 41 #include "third_party/skia/include/core/SkPath.h" | 44 #include "third_party/skia/include/core/SkPath.h" |
| 42 #include "third_party/skia/include/core/SkRRect.h" | 45 #include "third_party/skia/include/core/SkRRect.h" |
| 43 #include "third_party/skia/include/core/SkRect.h" | 46 #include "third_party/skia/include/core/SkRect.h" |
| 44 #include "wtf/HexNumber.h" | |
| 45 #include "wtf/text/Base64.h" | |
| 46 #include "wtf/text/TextEncoding.h" | |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 namespace { | 50 namespace { |
| 51 | 51 |
| 52 struct VerbParams { | 52 struct VerbParams { |
| 53 STACK_ALLOCATED(); | 53 STACK_ALLOCATED(); |
| 54 String name; | 54 String name; |
| 55 unsigned pointCount; | 55 unsigned pointCount; |
| 56 unsigned pointOffset; | 56 unsigned pointOffset; |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 recordAsJSON->setArray("operations", canvas.log()); | 914 recordAsJSON->setArray("operations", canvas.log()); |
| 915 return recordAsJSON->toPrettyJSONString(); | 915 return recordAsJSON->toPrettyJSONString(); |
| 916 } | 916 } |
| 917 | 917 |
| 918 void showPaintRecord(const PaintRecord* record) { | 918 void showPaintRecord(const PaintRecord* record) { |
| 919 WTFLogAlways("%s\n", recordAsDebugString(record).utf8().data()); | 919 WTFLogAlways("%s\n", recordAsDebugString(record).utf8().data()); |
| 920 } | 920 } |
| 921 #endif | 921 #endif |
| 922 | 922 |
| 923 } // namespace blink | 923 } // namespace blink |
| OLD | NEW |