| 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 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/image-encoders/skia/PNGImageEncoder.h" | 36 #include "platform/image-encoders/PNGImageEncoder.h" |
| 37 #include "third_party/skia/include/core/SkImage.h" | 37 #include "third_party/skia/include/core/SkImage.h" |
| 38 #include "third_party/skia/include/core/SkImageInfo.h" | 38 #include "third_party/skia/include/core/SkImageInfo.h" |
| 39 #include "third_party/skia/include/core/SkPaint.h" | 39 #include "third_party/skia/include/core/SkPaint.h" |
| 40 #include "third_party/skia/include/core/SkPath.h" | 40 #include "third_party/skia/include/core/SkPath.h" |
| 41 #include "third_party/skia/include/core/SkPicture.h" | 41 #include "third_party/skia/include/core/SkPicture.h" |
| 42 #include "third_party/skia/include/core/SkRRect.h" | 42 #include "third_party/skia/include/core/SkRRect.h" |
| 43 #include "third_party/skia/include/core/SkRect.h" | 43 #include "third_party/skia/include/core/SkRect.h" |
| 44 #include "wtf/HexNumber.h" | 44 #include "wtf/HexNumber.h" |
| 45 #include "wtf/text/Base64.h" | 45 #include "wtf/text/Base64.h" |
| 46 #include "wtf/text/TextEncoding.h" | 46 #include "wtf/text/TextEncoding.h" |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 return pictureAsJSON->toPrettyJSONString(); | 858 return pictureAsJSON->toPrettyJSONString(); |
| 859 } | 859 } |
| 860 | 860 |
| 861 void showSkPicture(const SkPicture* picture) | 861 void showSkPicture(const SkPicture* picture) |
| 862 { | 862 { |
| 863 WTFLogAlways("%s\n", pictureAsDebugString(picture).utf8().data()); | 863 WTFLogAlways("%s\n", pictureAsDebugString(picture).utf8().data()); |
| 864 } | 864 } |
| 865 #endif | 865 #endif |
| 866 | 866 |
| 867 } // namespace blink | 867 } // namespace blink |
| OLD | NEW |