| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SkPictureBuilder_h | 5 #ifndef SkPictureBuilder_h |
| 6 #define SkPictureBuilder_h | 6 #define SkPictureBuilder_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/geometry/FloatRect.h" | 9 #include "platform/geometry/FloatRect.h" |
| 10 #include "platform/graphics/paint/DisplayItemClient.h" | 10 #include "platform/graphics/paint/DisplayItemClient.h" |
| 11 #include "wtf/Noncopyable.h" | 11 #include "wtf/Noncopyable.h" |
| 12 #include "wtf/OwnPtr.h" |
| 12 #include "wtf/PassRefPtr.h" | 13 #include "wtf/PassRefPtr.h" |
| 13 #include <memory> | |
| 14 | 14 |
| 15 class SkMetaData; | 15 class SkMetaData; |
| 16 class SkPicture; | 16 class SkPicture; |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class GraphicsContext; | 20 class GraphicsContext; |
| 21 class PaintController; | 21 class PaintController; |
| 22 | 22 |
| 23 // When slimming paint ships we can remove this SkPicture abstraction and | 23 // When slimming paint ships we can remove this SkPicture abstraction and |
| (...skipping 14 matching lines...) Expand all Loading... |
| 38 // construction. | 38 // construction. |
| 39 PassRefPtr<SkPicture> endRecording(); | 39 PassRefPtr<SkPicture> endRecording(); |
| 40 | 40 |
| 41 // DisplayItemClient methods | 41 // DisplayItemClient methods |
| 42 String debugName() const final { return "SkPictureBuilder"; } | 42 String debugName() const final { return "SkPictureBuilder"; } |
| 43 LayoutRect visualRect() const final { return LayoutRect(); } | 43 LayoutRect visualRect() const final { return LayoutRect(); } |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION | 46 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION |
| 47 | 47 |
| 48 std::unique_ptr<PaintController> m_paintController; | 48 OwnPtr<PaintController> m_paintController; |
| 49 std::unique_ptr<GraphicsContext> m_context; | 49 OwnPtr<GraphicsContext> m_context; |
| 50 FloatRect m_bounds; | 50 FloatRect m_bounds; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace blink | 53 } // namespace blink |
| 54 | 54 |
| 55 #endif // SkPictureBuilder_h | 55 #endif // SkPictureBuilder_h |
| OLD | NEW |