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

Side by Side Diff: public/platform/WebDisplayItemList.h

Issue 947893002: Implement SVG masking with slimming paint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a mask debug print string Created 5 years, 10 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 | « Source/platform/graphics/paint/DrawingDisplayItem.h ('k') | no next file » | 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 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"
11 #include "WebRect.h" 11 #include "WebRect.h"
12 #include "WebSize.h" 12 #include "WebSize.h"
13 #include "WebVector.h" 13 #include "WebVector.h"
14 14
15 #include "third_party/skia/include/core/SkColorFilter.h"
15 #include "third_party/skia/include/core/SkRRect.h" 16 #include "third_party/skia/include/core/SkRRect.h"
16 #include "third_party/skia/include/core/SkRegion.h" 17 #include "third_party/skia/include/core/SkRegion.h"
18 #include "third_party/skia/include/core/SkXfermode.h"
17 #include "third_party/skia/include/utils/SkMatrix44.h" 19 #include "third_party/skia/include/utils/SkMatrix44.h"
18 20
19 // FIXME: Remove this once references to this macro in chromium are removed. 21 // FIXME: Remove this once references to this macro in chromium are removed.
20 #define FILTER_DISPLAY_ITEM_USES_FILTER_OPERATIONS 1 22 #define FILTER_DISPLAY_ITEM_USES_FILTER_OPERATIONS 1
21 23
22 class SkImageFilter; 24 class SkImageFilter;
23 class SkMatrix44; 25 class SkMatrix44;
24 class SkPicture; 26 class SkPicture;
25 27
26 namespace blink { 28 namespace blink {
(...skipping 13 matching lines...) Expand all
40 virtual void appendClipItem(const WebRect&, const WebVector<SkRRect>&) = 0; 42 virtual void appendClipItem(const WebRect&, const WebVector<SkRRect>&) = 0;
41 virtual void appendEndClipItem() = 0; 43 virtual void appendEndClipItem() = 0;
42 virtual void appendClipPathItem(const SkPath&, SkRegion::Op, bool antialias) = 0; 44 virtual void appendClipPathItem(const SkPath&, SkRegion::Op, bool antialias) = 0;
43 virtual void appendEndClipPathItem() = 0; 45 virtual void appendEndClipPathItem() = 0;
44 virtual void appendFloatClipItem(const WebFloatRect&) = 0; 46 virtual void appendFloatClipItem(const WebFloatRect&) = 0;
45 virtual void appendEndFloatClipItem() = 0; 47 virtual void appendEndFloatClipItem() = 0;
46 virtual void appendTransformItem(const SkMatrix44&) = 0; 48 virtual void appendTransformItem(const SkMatrix44&) = 0;
47 virtual void appendEndTransformItem() = 0; 49 virtual void appendEndTransformItem() = 0;
48 virtual void appendTransparencyItem(float opacity, WebBlendMode) = 0; 50 virtual void appendTransparencyItem(float opacity, WebBlendMode) = 0;
49 virtual void appendEndTransparencyItem() = 0; 51 virtual void appendEndTransparencyItem() = 0;
52 virtual void appendCompositingItem(float opacity,
53 SkXfermode::Mode, SkColorFilter*) = 0;
54 virtual void appendEndCompositingItem() = 0;
50 55
51 virtual void appendFilterItem(const WebFilterOperations&, const WebFloatRect & bounds) = 0; 56 virtual void appendFilterItem(const WebFilterOperations&, const WebFloatRect & bounds) = 0;
52 virtual void appendEndFilterItem() = 0; 57 virtual void appendEndFilterItem() = 0;
53 58
54 // Scroll containers are identified by an opaque pointer. 59 // Scroll containers are identified by an opaque pointer.
55 using ScrollContainerId = const void*; 60 using ScrollContainerId = const void*;
56 virtual void appendScrollItem(const WebSize& scrollOffset, ScrollContainerId ) = 0; 61 virtual void appendScrollItem(const WebSize& scrollOffset, ScrollContainerId ) = 0;
57 virtual void appendEndScrollItem() = 0; 62 virtual void appendEndScrollItem() = 0;
58 }; 63 };
59 64
60 } // namespace blink 65 } // namespace blink
61 66
62 #endif // WebDisplayItemList_h 67 #endif // WebDisplayItemList_h
63 68
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/DrawingDisplayItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698