[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / cc / blink / web_display_item_list_impl.h
blobd45d7d36d480ddfa1ec9fa6e13586c1f57fc392c
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/playback/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"
17 class SkColorFilter;
18 class SkImageFilter;
19 class SkMatrix44;
20 class SkPath;
21 class SkPicture;
22 class SkRRect;
24 namespace blink {
25 class WebFilterOperations;
26 struct WebFloatRect;
27 struct WebRect;
30 namespace cc {
31 class DisplayItemListSettings;
34 namespace cc_blink {
36 class WebDisplayItemListImpl : public blink::WebDisplayItemList {
37 public:
38 CC_BLINK_EXPORT WebDisplayItemListImpl();
39 CC_BLINK_EXPORT explicit WebDisplayItemListImpl(
40 cc::DisplayItemList* display_list);
41 virtual ~WebDisplayItemListImpl();
43 // blink::WebDisplayItemList implementation.
44 virtual void appendDrawingItem(const SkPicture*);
45 virtual void appendClipItem(
46 const blink::WebRect& clip_rect,
47 const blink::WebVector<SkRRect>& rounded_clip_rects);
48 virtual void appendEndClipItem();
49 virtual void appendClipPathItem(const SkPath& clip_path,
50 SkRegion::Op clip_op,
51 bool antialias);
52 virtual void appendEndClipPathItem();
53 virtual void appendFloatClipItem(const blink::WebFloatRect& clip_rect);
54 virtual void appendEndFloatClipItem();
55 virtual void appendTransformItem(const SkMatrix44& matrix);
56 virtual void appendEndTransformItem();
57 virtual void appendCompositingItem(float opacity,
58 SkXfermode::Mode,
59 SkRect* bounds,
60 SkColorFilter*);
61 virtual void appendEndCompositingItem();
62 virtual void appendFilterItem(const blink::WebFilterOperations& filters,
63 const blink::WebFloatRect& bounds);
64 virtual void appendEndFilterItem();
65 virtual void appendScrollItem(const blink::WebSize& scrollOffset,
66 ScrollContainerId);
67 virtual void appendEndScrollItem();
69 private:
70 scoped_refptr<cc::DisplayItemList> display_item_list_;
72 DISALLOW_COPY_AND_ASSIGN(WebDisplayItemListImpl);
75 } // namespace cc_blink
77 #endif // CC_BLINK_WEB_DISPLAY_ITEM_LIST_IMPL_H_