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

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

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « cc/blink/web_blend_mode.h ('k') | 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"
11 #include "cc/playback/display_item_list.h" 11 #include "cc/playback/display_item_list.h"
12 #include "third_party/WebKit/public/platform/WebDisplayItemList.h" 12 #include "third_party/WebKit/public/platform/WebDisplayItemList.h"
13 #include "third_party/WebKit/public/platform/WebVector.h" 13 #include "third_party/WebKit/public/platform/WebVector.h"
14 #include "third_party/skia/include/core/SkBlendMode.h"
14 #include "third_party/skia/include/core/SkRegion.h" 15 #include "third_party/skia/include/core/SkRegion.h"
15 #include "third_party/skia/include/core/SkXfermode.h"
16 #include "ui/gfx/geometry/point_f.h" 16 #include "ui/gfx/geometry/point_f.h"
17 17
18 class SkColorFilter; 18 class SkColorFilter;
19 class SkMatrix44; 19 class SkMatrix44;
20 class SkPath; 20 class SkPath;
21 class SkPicture; 21 class SkPicture;
22 class SkRRect; 22 class SkRRect;
23 23
24 namespace blink { 24 namespace blink {
25 struct WebFloatRect; 25 struct WebFloatRect;
(...skipping 23 matching lines...) Expand all
49 void appendEndClipItem() override; 49 void appendEndClipItem() override;
50 void appendClipPathItem(const SkPath& clip_path, 50 void appendClipPathItem(const SkPath& clip_path,
51 SkRegion::Op clip_op, 51 SkRegion::Op clip_op,
52 bool antialias) override; 52 bool antialias) override;
53 void appendEndClipPathItem() override; 53 void appendEndClipPathItem() override;
54 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override; 54 void appendFloatClipItem(const blink::WebFloatRect& clip_rect) override;
55 void appendEndFloatClipItem() override; 55 void appendEndFloatClipItem() override;
56 void appendTransformItem(const SkMatrix44& matrix) override; 56 void appendTransformItem(const SkMatrix44& matrix) override;
57 void appendEndTransformItem() override; 57 void appendEndTransformItem() override;
58 void appendCompositingItem(float opacity, 58 void appendCompositingItem(float opacity,
59 SkXfermode::Mode, 59 SkBlendMode,
60 SkRect* bounds, 60 SkRect* bounds,
61 SkColorFilter*) override; 61 SkColorFilter*) override;
62 void appendEndCompositingItem() override; 62 void appendEndCompositingItem() override;
63 void appendFilterItem(const cc::FilterOperations& filters, 63 void appendFilterItem(const cc::FilterOperations& filters,
64 const blink::WebFloatRect& filter_bounds, 64 const blink::WebFloatRect& filter_bounds,
65 const blink::WebFloatPoint& origin) override; 65 const blink::WebFloatPoint& origin) override;
66 void appendEndFilterItem() override; 66 void appendEndFilterItem() override;
67 void appendScrollItem(const blink::WebSize& scrollOffset, 67 void appendScrollItem(const blink::WebSize& scrollOffset,
68 ScrollContainerId) override; 68 ScrollContainerId) override;
69 void appendEndScrollItem() override; 69 void appendEndScrollItem() override;
70 70
71 void setIsSuitableForGpuRasterization(bool isSuitable) override; 71 void setIsSuitableForGpuRasterization(bool isSuitable) override;
72 72
73 private: 73 private:
74 scoped_refptr<cc::DisplayItemList> display_item_list_; 74 scoped_refptr<cc::DisplayItemList> display_item_list_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl); 76 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl);
77 }; 77 };
78 78
79 } // namespace cc_blink 79 } // namespace cc_blink
80 80
81 #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 | « cc/blink/web_blend_mode.h ('k') | cc/blink/web_display_item_list_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698