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/WebDisplayItemList.h"
12 #include "third_party/WebKit/public/platform/WebVector.h"
13 #include "third_party/skia/include/core/SkRegion.h"
14 #include "third_party/skia/include/core/SkXfermode.h"
15 #include "ui/gfx/geometry/point_f.h"
25 class WebFilterOperations
;
32 class WebDisplayItemListImpl
: public blink::WebDisplayItemList
{
34 CC_BLINK_EXPORT
WebDisplayItemListImpl();
35 virtual ~WebDisplayItemListImpl();
37 scoped_refptr
<cc::DisplayItemList
> ToDisplayItemList();
39 // blink::WebDisplayItemList implementation.
40 virtual void appendDrawingItem(const SkPicture
*);
41 virtual void appendClipItem(
42 const blink::WebRect
& clip_rect
,
43 const blink::WebVector
<SkRRect
>& rounded_clip_rects
);
44 virtual void appendEndClipItem();
45 virtual void appendClipPathItem(const SkPath
& clip_path
,
48 virtual void appendEndClipPathItem();
49 virtual void appendFloatClipItem(const blink::WebFloatRect
& clip_rect
);
50 virtual void appendEndFloatClipItem();
51 virtual void appendTransformItem(const SkMatrix44
& matrix
);
52 virtual void appendEndTransformItem();
53 virtual void appendCompositingItem(float opacity
,
57 virtual void appendEndCompositingItem();
58 virtual void appendFilterItem(const blink::WebFilterOperations
& filters
,
59 const blink::WebFloatRect
& bounds
);
60 virtual void appendEndFilterItem();
61 virtual void appendScrollItem(const blink::WebSize
& scrollOffset
,
63 virtual void appendEndScrollItem();
66 scoped_refptr
<cc::DisplayItemList
> display_item_list_
;
68 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl
);
71 } // namespace cc_blink
73 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_