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_COMPOSITOR_SUPPORT_IMPL_H_
6 #define CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_
8 #include "base/memory/ref_counted.h"
9 #include "cc/blink/cc_blink_export.h"
10 #include "third_party/WebKit/public/platform/WebCompositorAnimationCurve.h"
11 #include "third_party/WebKit/public/platform/WebCompositorSupport.h"
12 #include "third_party/WebKit/public/platform/WebContentLayerClient.h"
13 #include "third_party/WebKit/public/platform/WebLayer.h"
14 #include "third_party/WebKit/public/platform/WebTransformOperations.h"
17 class WebGraphicsContext3D
;
22 class CC_BLINK_EXPORT WebCompositorSupportImpl
23 : public NON_EXPORTED_BASE(blink::WebCompositorSupport
) {
25 WebCompositorSupportImpl();
26 virtual ~WebCompositorSupportImpl();
28 virtual blink::WebLayer
* createLayer();
29 virtual blink::WebContentLayer
* createContentLayer(
30 blink::WebContentLayerClient
* client
);
31 virtual blink::WebExternalTextureLayer
* createExternalTextureLayer(
32 blink::WebExternalTextureLayerClient
* client
);
33 virtual blink::WebImageLayer
* createImageLayer();
34 virtual blink::WebScrollbarLayer
* createScrollbarLayer(
35 blink::WebScrollbar
* scrollbar
,
36 blink::WebScrollbarThemePainter painter
,
37 blink::WebScrollbarThemeGeometry
*);
38 virtual blink::WebScrollbarLayer
* createSolidColorScrollbarLayer(
39 blink::WebScrollbar::Orientation orientation
,
42 bool is_left_side_vertical_scrollbar
);
43 virtual blink::WebCompositorAnimation
* createAnimation(
44 const blink::WebCompositorAnimationCurve
& curve
,
45 blink::WebCompositorAnimation::TargetProperty target
,
48 virtual blink::WebFilterAnimationCurve
* createFilterAnimationCurve();
49 virtual blink::WebFloatAnimationCurve
* createFloatAnimationCurve();
50 virtual blink::WebScrollOffsetAnimationCurve
*
51 createScrollOffsetAnimationCurve(
52 blink::WebFloatPoint target_value
,
53 blink::WebCompositorAnimationCurve::TimingFunctionType
55 virtual blink::WebTransformAnimationCurve
* createTransformAnimationCurve();
56 virtual blink::WebTransformOperations
* createTransformOperations();
57 virtual blink::WebFilterOperations
* createFilterOperations();
58 virtual blink::WebDisplayItemList
* createDisplayItemList();
60 virtual blink::WebCompositorAnimationPlayer
* createAnimationPlayer();
61 virtual blink::WebCompositorAnimationTimeline
* createAnimationTimeline();
64 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl
);
67 } // namespace cc_blink
69 #endif // CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_