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

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

Issue 1819683002: Use sk_sp-based picture recording APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skspify GetPicture/GetFlattenedPicture Created 4 years, 9 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&, const SkPicture*) override; 45 void appendDrawingItem(const blink::WebRect&,
46 sk_sp<const SkPicture>) override;
46 void appendClipItem( 47 void appendClipItem(
47 const blink::WebRect& visual_rect, 48 const blink::WebRect& visual_rect,
48 const blink::WebRect& clip_rect, 49 const blink::WebRect& clip_rect,
49 const blink::WebVector<SkRRect>& rounded_clip_rects) override; 50 const blink::WebVector<SkRRect>& rounded_clip_rects) override;
50 void appendEndClipItem(const blink::WebRect& visual_rect) override; 51 void appendEndClipItem(const blink::WebRect& visual_rect) override;
51 void appendClipPathItem(const blink::WebRect& visual_rect, 52 void appendClipPathItem(const blink::WebRect& visual_rect,
52 const SkPath& clip_path, 53 const SkPath& clip_path,
53 SkRegion::Op clip_op, 54 SkRegion::Op clip_op,
54 bool antialias) override; 55 bool antialias) override;
55 void appendEndClipPathItem(const blink::WebRect& visual_rect) override; 56 void appendEndClipPathItem(const blink::WebRect& visual_rect) override;
(...skipping 20 matching lines...) Expand all
76 77
77 private: 78 private:
78 scoped_refptr<cc::DisplayItemList> display_item_list_; 79 scoped_refptr<cc::DisplayItemList> display_item_list_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); 81 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl);
81 }; 82 };
82 83
83 } // namespace cc_blink 84 } // namespace cc_blink
84 85
85 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_ 86 #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