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 "base/message_loop/message_loop_proxy.h"
10 #include "cc/blink/cc_blink_export.h"
11 #include "third_party/WebKit/public/platform/WebCompositorAnimationCurve.h"
12 #include "third_party/WebKit/public/platform/WebCompositorSupport.h"
13 #include "third_party/WebKit/public/platform/WebContentLayerClient.h"
14 #include "third_party/WebKit/public/platform/WebLayer.h"
15 #include "third_party/WebKit/public/platform/WebTransformOperations.h"
18 class WebGraphicsContext3D
;
23 class CC_BLINK_EXPORT WebCompositorSupportImpl
24 : public NON_EXPORTED_BASE(blink::WebCompositorSupport
) {
26 WebCompositorSupportImpl();
27 virtual ~WebCompositorSupportImpl();
29 virtual blink::WebLayer
* createLayer();
30 virtual blink::WebContentLayer
* createContentLayer(
31 blink::WebContentLayerClient
* client
);
32 virtual blink::WebExternalTextureLayer
* createExternalTextureLayer(
33 blink::WebExternalTextureLayerClient
* client
);
34 virtual blink::WebImageLayer
* createImageLayer();
35 virtual blink::WebNinePatchLayer
* createNinePatchLayer();
36 virtual blink::WebScrollbarLayer
* createScrollbarLayer(
37 blink::WebScrollbar
* scrollbar
,
38 blink::WebScrollbarThemePainter painter
,
39 blink::WebScrollbarThemeGeometry
*);
40 virtual blink::WebScrollbarLayer
* createSolidColorScrollbarLayer(
41 blink::WebScrollbar::Orientation orientation
,
44 bool is_left_side_vertical_scrollbar
);
45 virtual blink::WebCompositorAnimation
* createAnimation(
46 const blink::WebCompositorAnimationCurve
& curve
,
47 blink::WebCompositorAnimation::TargetProperty target
,
50 virtual blink::WebFilterAnimationCurve
* createFilterAnimationCurve();
51 virtual blink::WebFloatAnimationCurve
* createFloatAnimationCurve();
52 virtual blink::WebScrollOffsetAnimationCurve
*
53 createScrollOffsetAnimationCurve(
54 blink::WebFloatPoint target_value
,
55 blink::WebCompositorAnimationCurve::TimingFunctionType
57 virtual blink::WebTransformAnimationCurve
* createTransformAnimationCurve();
58 virtual blink::WebTransformOperations
* createTransformOperations();
59 virtual blink::WebFilterOperations
* createFilterOperations();
60 virtual blink::WebDisplayItemList
* createDisplayItemList();
63 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl
);
66 } // namespace cc_blink
68 #endif // CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_