OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_ | 5 #ifndef CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
6 #define CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_ | 6 #define CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "cc/blink/cc_blink_export.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" | 11 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" |
13 #include "third_party/WebKit/public/platform/WebContentLayerClient.h" | 12 #include "third_party/WebKit/public/platform/WebContentLayerClient.h" |
14 #include "third_party/WebKit/public/platform/WebLayer.h" | 13 #include "third_party/WebKit/public/platform/WebLayer.h" |
15 #include "third_party/WebKit/public/platform/WebTransformOperations.h" | |
16 | 14 |
17 namespace blink { | 15 namespace blink { |
18 class WebGraphicsContext3D; | 16 class WebGraphicsContext3D; |
19 } | 17 } |
20 | 18 |
21 namespace cc_blink { | 19 namespace cc_blink { |
22 | 20 |
23 class CC_BLINK_EXPORT WebCompositorSupportImpl | 21 class CC_BLINK_EXPORT WebCompositorSupportImpl |
24 : public NON_EXPORTED_BASE(blink::WebCompositorSupport) { | 22 : public NON_EXPORTED_BASE(blink::WebCompositorSupport) { |
25 public: | 23 public: |
26 WebCompositorSupportImpl(); | 24 WebCompositorSupportImpl(); |
27 ~WebCompositorSupportImpl() override; | 25 ~WebCompositorSupportImpl() override; |
28 | 26 |
29 blink::WebLayer* createLayer() override; | 27 blink::WebLayer* createLayer() override; |
30 blink::WebLayer* createLayerFromCCLayer(cc::Layer*) override; | 28 blink::WebLayer* createLayerFromCCLayer(cc::Layer*) override; |
31 blink::WebContentLayer* createContentLayer( | 29 blink::WebContentLayer* createContentLayer( |
32 blink::WebContentLayerClient* client) override; | 30 blink::WebContentLayerClient* client) override; |
33 blink::WebExternalTextureLayer* createExternalTextureLayer( | 31 blink::WebExternalTextureLayer* createExternalTextureLayer( |
34 blink::WebExternalTextureLayerClient* client) override; | 32 blink::WebExternalTextureLayerClient* client) override; |
35 blink::WebImageLayer* createImageLayer() override; | 33 blink::WebImageLayer* createImageLayer() override; |
36 blink::WebScrollbarLayer* createScrollbarLayer( | 34 blink::WebScrollbarLayer* createScrollbarLayer( |
37 blink::WebScrollbar* scrollbar, | 35 blink::WebScrollbar* scrollbar, |
38 blink::WebScrollbarThemePainter painter, | 36 blink::WebScrollbarThemePainter painter, |
39 blink::WebScrollbarThemeGeometry*) override; | 37 blink::WebScrollbarThemeGeometry*) override; |
40 blink::WebScrollbarLayer* createSolidColorScrollbarLayer( | 38 blink::WebScrollbarLayer* createSolidColorScrollbarLayer( |
41 blink::WebScrollbar::Orientation orientation, | 39 blink::WebScrollbar::Orientation orientation, |
42 int thumb_thickness, | 40 int thumb_thickness, |
43 int track_start, | 41 int track_start, |
44 bool is_left_side_vertical_scrollbar) override; | 42 bool is_left_side_vertical_scrollbar) override; |
45 blink::WebCompositorAnimation* createAnimation( | |
46 const blink::WebCompositorAnimationCurve& curve, | |
47 blink::WebCompositorAnimation::TargetProperty target, | |
48 int group_id, | |
49 int animation_id) override; | |
50 blink::WebFilterAnimationCurve* createFilterAnimationCurve() override; | |
51 blink::WebFloatAnimationCurve* createFloatAnimationCurve() override; | |
52 blink::WebScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve( | |
53 blink::WebFloatPoint target_value, | |
54 blink::WebCompositorAnimationCurve::TimingFunctionType timing_function, | |
55 blink::WebScrollOffsetAnimationCurve::ScrollDurationBehavior | |
56 duration_behavior) override; | |
57 blink::WebTransformAnimationCurve* createTransformAnimationCurve() override; | |
58 blink::WebTransformOperations* createTransformOperations() override; | |
59 blink::WebFilterOperations* createFilterOperations() override; | |
60 | |
61 blink::WebCompositorAnimationPlayer* createAnimationPlayer() override; | |
62 blink::WebCompositorAnimationTimeline* createAnimationTimeline() override; | |
63 | 43 |
64 private: | 44 private: |
65 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl); | 45 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl); |
66 }; | 46 }; |
67 | 47 |
68 } // namespace cc_blink | 48 } // namespace cc_blink |
69 | 49 |
70 #endif // CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_ | 50 #endif // CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
OLD | NEW |