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

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

Issue 953143003: Remove unused transparency display item functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « no previous file | 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/SkColorFilter.h"
16 #include "third_party/skia/include/core/SkRRect.h" 16 #include "third_party/skia/include/core/SkRRect.h"
17 #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" 18 #include "third_party/skia/include/core/SkXfermode.h"
19 #include "third_party/skia/include/utils/SkMatrix44.h" 19 #include "third_party/skia/include/utils/SkMatrix44.h"
20 20
21 // FIXME: Remove this once references to this macro in chromium are removed.
22 #define FILTER_DISPLAY_ITEM_USES_FILTER_OPERATIONS 1
ajuma 2015/02/25 14:11:34 Thanks for cleaning this up!
23
24 class SkImageFilter; 21 class SkImageFilter;
25 class SkMatrix44; 22 class SkMatrix44;
26 class SkPicture; 23 class SkPicture;
27 24
28 namespace blink { 25 namespace blink {
29 class WebFilterOperations; 26 class WebFilterOperations;
30 27
31 // An ordered list of items representing content to be rendered (stored in 28 // An ordered list of items representing content to be rendered (stored in
32 // 'drawing' items) and operations to be performed when rendering this content 29 // 'drawing' items) and operations to be performed when rendering this content
33 // (stored in 'clip', 'transform', 'transparency', and 'filter' items). See 30 // (stored in 'clip', 'transform', 'filter', etc...). For more details see:
34 // http://dev.chromium.org/blink/slimming-paint for more details. 31 // http://dev.chromium.org/blink/slimming-paint.
35 class WebDisplayItemList { 32 class WebDisplayItemList {
36 public: 33 public:
37 virtual ~WebDisplayItemList() { } 34 virtual ~WebDisplayItemList() { }
38 35
39 // This grabs a ref on the passed-in SkPicture. 36 // This grabs a ref on the passed-in SkPicture.
40 virtual void appendDrawingItem(const SkPicture*) = 0; 37 virtual void appendDrawingItem(const SkPicture*) = 0;
41 38
42 virtual void appendClipItem(const WebRect&, const WebVector<SkRRect>&) = 0; 39 virtual void appendClipItem(const WebRect&, const WebVector<SkRRect>&) = 0;
43 virtual void appendEndClipItem() = 0; 40 virtual void appendEndClipItem() = 0;
44 virtual void appendClipPathItem(const SkPath&, SkRegion::Op, bool antialias) = 0; 41 virtual void appendClipPathItem(const SkPath&, SkRegion::Op, bool antialias) = 0;
45 virtual void appendEndClipPathItem() = 0; 42 virtual void appendEndClipPathItem() = 0;
46 virtual void appendFloatClipItem(const WebFloatRect&) = 0; 43 virtual void appendFloatClipItem(const WebFloatRect&) = 0;
47 virtual void appendEndFloatClipItem() = 0; 44 virtual void appendEndFloatClipItem() = 0;
48 virtual void appendTransformItem(const SkMatrix44&) = 0; 45 virtual void appendTransformItem(const SkMatrix44&) = 0;
49 virtual void appendEndTransformItem() = 0; 46 virtual void appendEndTransformItem() = 0;
50 virtual void appendTransparencyItem(float opacity, WebBlendMode) = 0;
51 virtual void appendEndTransparencyItem() = 0;
52 virtual void appendCompositingItem(float opacity, 47 virtual void appendCompositingItem(float opacity,
53 SkXfermode::Mode, SkColorFilter*) = 0; 48 SkXfermode::Mode, SkColorFilter*) = 0;
54 virtual void appendEndCompositingItem() = 0; 49 virtual void appendEndCompositingItem() = 0;
55 50
56 virtual void appendFilterItem(const WebFilterOperations&, const WebFloatRect & bounds) = 0; 51 virtual void appendFilterItem(const WebFilterOperations&, const WebFloatRect & bounds) = 0;
57 virtual void appendEndFilterItem() = 0; 52 virtual void appendEndFilterItem() = 0;
58 53
59 // Scroll containers are identified by an opaque pointer. 54 // Scroll containers are identified by an opaque pointer.
60 using ScrollContainerId = const void*; 55 using ScrollContainerId = const void*;
61 virtual void appendScrollItem(const WebSize& scrollOffset, ScrollContainerId ) = 0; 56 virtual void appendScrollItem(const WebSize& scrollOffset, ScrollContainerId ) = 0;
62 virtual void appendEndScrollItem() = 0; 57 virtual void appendEndScrollItem() = 0;
63 }; 58 };
64 59
65 } // namespace blink 60 } // namespace blink
66 61
67 #endif // WebDisplayItemList_h 62 #endif // WebDisplayItemList_h
68 63
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698