OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 WebDisplayItemList_h | 5 #ifndef WebDisplayItemList_h |
6 #define WebDisplayItemList_h | 6 #define WebDisplayItemList_h |
7 | 7 |
8 #include "WebBlendMode.h" | 8 #include "WebBlendMode.h" |
9 #include "WebFloatPoint.h" | 9 #include "WebFloatPoint.h" |
10 #include "WebFloatRect.h" | 10 #include "WebFloatRect.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // An ordered list of items representing content to be rendered (stored in | 31 // An ordered list of items representing content to be rendered (stored in |
32 // 'drawing' items) and operations to be performed when rendering this content | 32 // 'drawing' items) and operations to be performed when rendering this content |
33 // (stored in 'clip', 'transform', 'filter', etc...). For more details see: | 33 // (stored in 'clip', 'transform', 'filter', etc...). For more details see: |
34 // http://dev.chromium.org/blink/slimming-paint. | 34 // http://dev.chromium.org/blink/slimming-paint. |
35 class WebDisplayItemList { | 35 class WebDisplayItemList { |
36 public: | 36 public: |
37 virtual ~WebDisplayItemList() {} | 37 virtual ~WebDisplayItemList() {} |
38 | 38 |
39 virtual void AppendDrawingItem(const WebRect& visual_rect, | 39 virtual void AppendDrawingItem(const WebRect& visual_rect, |
40 sk_sp<const cc::PaintRecord>) {} | 40 sk_sp<const cc::PaintRecord>, |
| 41 const WebRect& record_bounds) {} |
41 | 42 |
42 virtual void AppendClipItem(const WebRect& clip_rect, | 43 virtual void AppendClipItem(const WebRect& clip_rect, |
43 const WebVector<SkRRect>& rounded_clip_rects) {} | 44 const WebVector<SkRRect>& rounded_clip_rects) {} |
44 virtual void AppendEndClipItem() {} | 45 virtual void AppendEndClipItem() {} |
45 virtual void AppendClipPathItem(const SkPath&, bool antialias) {} | 46 virtual void AppendClipPathItem(const SkPath&, bool antialias) {} |
46 virtual void AppendEndClipPathItem() {} | 47 virtual void AppendEndClipPathItem() {} |
47 virtual void AppendFloatClipItem(const WebFloatRect& clip_rect) {} | 48 virtual void AppendFloatClipItem(const WebFloatRect& clip_rect) {} |
48 virtual void AppendEndFloatClipItem() {} | 49 virtual void AppendEndFloatClipItem() {} |
49 virtual void AppendTransformItem(const SkMatrix44&) {} | 50 virtual void AppendTransformItem(const SkMatrix44&) {} |
50 virtual void AppendEndTransformItem() {} | 51 virtual void AppendEndTransformItem() {} |
(...skipping 14 matching lines...) Expand all Loading... |
65 virtual void AppendScrollItem(const WebSize& scroll_offset, | 66 virtual void AppendScrollItem(const WebSize& scroll_offset, |
66 ScrollContainerId) {} | 67 ScrollContainerId) {} |
67 virtual void AppendEndScrollItem() {} | 68 virtual void AppendEndScrollItem() {} |
68 | 69 |
69 virtual void SetIsSuitableForGpuRasterization(bool is_suitable) {} | 70 virtual void SetIsSuitableForGpuRasterization(bool is_suitable) {} |
70 }; | 71 }; |
71 | 72 |
72 } // namespace blink | 73 } // namespace blink |
73 | 74 |
74 #endif // WebDisplayItemList_h | 75 #endif // WebDisplayItemList_h |
OLD | NEW |