| 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" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Returns a picture capturing all drawing performed on the builder's contex
t since | 37 // Returns a picture capturing all drawing performed on the builder's contex
t since |
| 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 | |
| 47 | |
| 48 OwnPtr<PaintController> m_paintController; | 46 OwnPtr<PaintController> m_paintController; |
| 49 OwnPtr<GraphicsContext> m_context; | 47 OwnPtr<GraphicsContext> m_context; |
| 50 FloatRect m_bounds; | 48 FloatRect m_bounds; |
| 51 }; | 49 }; |
| 52 | 50 |
| 53 } // namespace blink | 51 } // namespace blink |
| 54 | 52 |
| 55 #endif // SkPictureBuilder_h | 53 #endif // SkPictureBuilder_h |
| OLD | NEW |