Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: cc/blink/web_display_item_list_impl.h

Issue 2230513005: Move visual rect unioning between paired items to cc::DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review feedback. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/blink/web_display_item_list_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ 5 #ifndef CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_
6 #define CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ 6 #define CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "cc/blink/cc_blink_export.h" 10 #include "cc/blink/cc_blink_export.h"
(...skipping 24 matching lines...) Expand all
35 namespace cc_blink { 35 namespace cc_blink {
36 36
37 class WebDisplayItemListImpl : public blink::WebDisplayItemList { 37 class WebDisplayItemListImpl : public blink::WebDisplayItemList {
38 public: 38 public:
39 CC_BLINK_EXPORT WebDisplayItemListImpl(); 39 CC_BLINK_EXPORT WebDisplayItemListImpl();
40 CC_BLINK_EXPORT explicit WebDisplayItemListImpl( 40 CC_BLINK_EXPORT explicit WebDisplayItemListImpl(
41 cc::DisplayItemList* display_list); 41 cc::DisplayItemList* display_list);
42 ~WebDisplayItemListImpl() override; 42 ~WebDisplayItemListImpl() override;
43 43
44 // blink::WebDisplayItemList implementation. 44 // blink::WebDisplayItemList implementation.
45 void appendDrawingItem(const blink::WebRect&, 45 void appendDrawingItem(const blink::WebRect& visual_rect,
46 sk_sp<const SkPicture>) override; 46 sk_sp<const SkPicture> picture) override;
47 void appendClipItem( 47 void appendClipItem(
48 const blink::WebRect& visual_rect,
49 const blink::WebRect& clip_rect, 48 const blink::WebRect& clip_rect,
50 const blink::WebVector<SkRRect>& rounded_clip_rects) override; 49 const blink::WebVector<SkRRect>& rounded_clip_rects) override;
51 void appendEndClipItem(const blink::WebRect& visual_rect) override; 50 void appendEndClipItem() override;
52 void appendClipPathItem(const blink::WebRect& visual_rect, 51 void appendClipPathItem(const SkPath& clip_path,
53 const SkPath& clip_path,
54 SkRegion::Op clip_op, 52 SkRegion::Op clip_op,
55 bool antialias) override; 53 bool antialias) override;
56 void appendEndClipPathItem(const blink::WebRect& visual_rect) override; 54 void appendEndClipPathItem() override;
57 void appendFloatClipItem(const blink::WebRect& visual_rect, 55 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override;
58 const blink::WebFloatRect& clip_rect) override; 56 void appendEndFloatClipItem() override;
59 void appendEndFloatClipItem(const blink::WebRect& visual_rect) override; 57 void appendTransformItem(const SkMatrix44& matrix) override;
60 void appendTransformItem(const blink::WebRect& visual_rect, 58 void appendEndTransformItem() override;
61 const SkMatrix44& matrix) override; 59 void appendCompositingItem(float opacity,
62 void appendEndTransformItem(const blink::WebRect& visual_rect) override;
63 void appendCompositingItem(const blink::WebRect& visual_rect,
64 float opacity,
65 SkXfermode::Mode, 60 SkXfermode::Mode,
66 SkRect* bounds, 61 SkRect* bounds,
67 SkColorFilter*) override; 62 SkColorFilter*) override;
68 void appendEndCompositingItem(const blink::WebRect& visual_rect) override; 63 void appendEndCompositingItem() override;
69 void appendFilterItem(const blink::WebRect& visual_rect, 64 void appendFilterItem(const cc::FilterOperations& filters,
70 const cc::FilterOperations& filters,
71 const blink::WebFloatRect& bounds) override; 65 const blink::WebFloatRect& bounds) override;
72 void appendEndFilterItem(const blink::WebRect& visual_rect) override; 66 void appendEndFilterItem() override;
73 void appendScrollItem(const blink::WebRect& visual_rect, 67 void appendScrollItem(const blink::WebSize& scrollOffset,
74 const blink::WebSize& scrollOffset,
75 ScrollContainerId) override; 68 ScrollContainerId) override;
76 void appendEndScrollItem(const blink::WebRect& visual_rect) override; 69 void appendEndScrollItem() override;
77 70
78 void setIsSuitableForGpuRasterization(bool isSuitable) override; 71 void setIsSuitableForGpuRasterization(bool isSuitable) override;
79 72
80 private: 73 private:
81 scoped_refptr<cc::DisplayItemList> display_item_list_; 74 scoped_refptr<cc::DisplayItemList> display_item_list_;
82 75
83 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); 76 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl);
84 }; 77 };
85 78
86 } // namespace cc_blink 79 } // namespace cc_blink
87 80
88 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ 81 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/blink/web_display_item_list_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698