| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef PictureSnapshot_h | 31 #ifndef PictureSnapshot_h |
| 32 #define PictureSnapshot_h | 32 #define PictureSnapshot_h |
| 33 | 33 |
| 34 #include <memory> | 34 #include <memory> |
| 35 | 35 |
| 36 #include "platform/PlatformExport.h" | 36 #include "platform/PlatformExport.h" |
| 37 #include "platform/graphics/GraphicsContext.h" | 37 #include "platform/graphics/GraphicsContext.h" |
| 38 #include "platform/json/JSONValues.h" | 38 #include "platform/json/JSONValues.h" |
| 39 #include "platform/wtf/RefCounted.h" |
| 39 #include "third_party/skia/include/core/SkPicture.h" | 40 #include "third_party/skia/include/core/SkPicture.h" |
| 40 #include "third_party/skia/include/core/SkPictureRecorder.h" | 41 #include "third_party/skia/include/core/SkPictureRecorder.h" |
| 41 #include "third_party/skia/include/core/SkRefCnt.h" | 42 #include "third_party/skia/include/core/SkRefCnt.h" |
| 42 #include "wtf/RefCounted.h" | |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class FloatRect; | 46 class FloatRect; |
| 47 | 47 |
| 48 class PLATFORM_EXPORT PictureSnapshot : public RefCounted<PictureSnapshot> { | 48 class PLATFORM_EXPORT PictureSnapshot : public RefCounted<PictureSnapshot> { |
| 49 WTF_MAKE_NONCOPYABLE(PictureSnapshot); | 49 WTF_MAKE_NONCOPYABLE(PictureSnapshot); |
| 50 | 50 |
| 51 public: | 51 public: |
| 52 typedef Vector<Vector<double>> Timings; | 52 typedef Vector<Vector<double>> Timings; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 std::unique_ptr<SkBitmap> createBitmap() const; | 74 std::unique_ptr<SkBitmap> createBitmap() const; |
| 75 | 75 |
| 76 sk_sp<const SkPicture> m_picture; | 76 sk_sp<const SkPicture> m_picture; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // PictureSnapshot_h | 81 #endif // PictureSnapshot_h |
| OLD | NEW |