ProfilePolicyConnectorFactory: Refactoring from Profile to BrowserContext.
[chromium-blink-merge.git] / cc / blink / web_display_item_list_impl.h
blobf2ff8c67411f0cfbd0d2ee04141142e454b6313c
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
3 // found in the LICENSE file.
5 #ifndef CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_
6 #define CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_
8 #include "base/memory/ref_counted.h"
9 #include "cc/blink/cc_blink_export.h"
10 #include "cc/resources/display_item_list.h"
11 #include "third_party/WebKit/public/platform/WebBlendMode.h"
12 #include "third_party/WebKit/public/platform/WebContentLayerClient.h"
13 #include "third_party/WebKit/public/platform/WebDisplayItemList.h"
14 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
15 #include "third_party/WebKit/public/platform/WebVector.h"
16 #include "third_party/skia/include/core/SkRegion.h"
17 #include "ui/gfx/geometry/point_f.h"
19 class SkImageFilter;
20 class SkMatrix44;
21 class SkPath;
22 class SkPicture;
23 class SkRRect;
25 namespace cc_blink {
27 class WebDisplayItemListImpl : public blink::WebDisplayItemList {
28 public:
29 CC_BLINK_EXPORT WebDisplayItemListImpl();
30 virtual ~WebDisplayItemListImpl();
32 scoped_refptr<cc::DisplayItemList> ToDisplayItemList();
34 // blink::WebDisplayItemList implementation.
35 virtual void appendDrawingItem(const SkPicture*);
36 virtual void appendDrawingItem(SkPicture*,
37 const blink::WebFloatPoint& location);
38 virtual void appendClipItem(
39 const blink::WebRect& clip_rect,
40 const blink::WebVector<SkRRect>& rounded_clip_rects);
41 virtual void appendEndClipItem();
42 virtual void appendClipPathItem(const SkPath& clip_path,
43 SkRegion::Op clip_op,
44 bool antialias);
45 virtual void appendEndClipPathItem();
46 virtual void appendFloatClipItem(const blink::WebFloatRect& clip_rect);
47 virtual void appendEndFloatClipItem();
48 virtual void appendTransformItem(const SkMatrix44& matrix);
49 virtual void appendEndTransformItem();
50 virtual void appendTransparencyItem(float opacity,
51 blink::WebBlendMode blend_mode);
52 virtual void appendEndTransparencyItem();
53 #if FILTER_DISPLAY_ITEM_USES_FILTER_OPERATIONS
54 virtual void appendFilterItem(const blink::WebFilterOperations& filters,
55 const blink::WebFloatRect& bounds);
56 #else
57 virtual void appendFilterItem(SkImageFilter* filter,
58 const blink::WebFloatRect& bounds);
59 #endif
60 virtual void appendEndFilterItem();
62 private:
63 scoped_refptr<cc::DisplayItemList> display_item_list_;
65 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl);
68 } // namespace cc_blink
70 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_