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 |
46 OwnPtr<PaintController> m_paintController; | 48 OwnPtr<PaintController> m_paintController; |
47 OwnPtr<GraphicsContext> m_context; | 49 OwnPtr<GraphicsContext> m_context; |
48 FloatRect m_bounds; | 50 FloatRect m_bounds; |
49 }; | 51 }; |
50 | 52 |
51 } // namespace blink | 53 } // namespace blink |
52 | 54 |
53 #endif // SkPictureBuilder_h | 55 #endif // SkPictureBuilder_h |
OLD | NEW |