OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 class WebLayer; | 56 class WebLayer; |
57 class WebScrollbarLayer; | 57 class WebScrollbarLayer; |
58 class WebScrollbarThemeGeometry; | 58 class WebScrollbarThemeGeometry; |
59 class WebScrollOffsetAnimationCurve; | 59 class WebScrollOffsetAnimationCurve; |
60 class WebTransformAnimationCurve; | 60 class WebTransformAnimationCurve; |
61 class WebTransformOperations; | 61 class WebTransformOperations; |
62 | 62 |
63 class WebCompositorSupport { | 63 class WebCompositorSupport { |
64 public: | 64 public: |
65 // Creates an output surface for the compositor backed by a 3d context. | 65 // Creates an output surface for the compositor backed by a 3d context. |
66 virtual WebCompositorOutputSurface* createOutputSurfaceFor3D(WebGraphicsCont
ext3D*) { return 0; } | 66 virtual WebCompositorOutputSurface* createOutputSurfaceFor3D(WebGraphicsCont
ext3D*) { return nullptr; } |
67 | 67 |
68 // Creates an output surface for the compositor backed by a software device. | 68 // Creates an output surface for the compositor backed by a software device. |
69 virtual WebCompositorOutputSurface* createOutputSurfaceForSoftware() { retur
n 0; } | 69 virtual WebCompositorOutputSurface* createOutputSurfaceForSoftware() { retur
n nullptr; } |
70 | 70 |
71 // Layers ------------------------------------------------------- | 71 // Layers ------------------------------------------------------- |
72 | 72 |
73 virtual WebLayer* createLayer() { return 0; } | 73 virtual WebLayer* createLayer() { return nullptr; } |
74 | 74 |
75 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
0; } | 75 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
nullptr; } |
76 | 76 |
77 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu
reLayerClient*) { return 0; } | 77 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu
reLayerClient*) { return nullptr; } |
78 | 78 |
79 virtual WebImageLayer* createImageLayer() { return 0; } | 79 virtual WebImageLayer* createImageLayer() { return nullptr; } |
80 | 80 |
81 virtual WebNinePatchLayer* createNinePatchLayer() { return 0; } | 81 virtual WebNinePatchLayer* createNinePatchLayer() { return nullptr; } |
82 | 82 |
83 // The ownership of the WebScrollbarThemeGeometry pointer is passed to Chrom
ium. | 83 // The ownership of the WebScrollbarThemeGeometry pointer is passed to Chrom
ium. |
84 virtual WebScrollbarLayer* createScrollbarLayer(WebScrollbar*, WebScrollbarT
hemePainter, WebScrollbarThemeGeometry*) { return 0; } | 84 virtual WebScrollbarLayer* createScrollbarLayer(WebScrollbar*, WebScrollbarT
hemePainter, WebScrollbarThemeGeometry*) { return nullptr; } |
85 | 85 |
86 virtual WebScrollbarLayer* createSolidColorScrollbarLayer(WebScrollbar::Orie
ntation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar) {
return 0; } | 86 virtual WebScrollbarLayer* createSolidColorScrollbarLayer(WebScrollbar::Orie
ntation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar) {
return nullptr; } |
87 | 87 |
88 // Animation ---------------------------------------------------- | 88 // Animation ---------------------------------------------------- |
89 | 89 |
90 virtual WebCompositorAnimation* createAnimation(const WebCompositorAnimation
Curve&, WebCompositorAnimation::TargetProperty, int groupId = 0, int animationId
= 0) { return 0; } | 90 virtual WebCompositorAnimation* createAnimation(const WebCompositorAnimation
Curve&, WebCompositorAnimation::TargetProperty, int groupId = 0, int animationId
= 0) { return nullptr; } |
91 | 91 |
92 virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return 0; } | 92 virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return nullp
tr; } |
93 | 93 |
94 virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return 0; } | 94 virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return nullptr
; } |
95 | 95 |
96 virtual WebScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve(WebF
loatPoint targetValue, WebCompositorAnimationCurve::TimingFunctionType) { return
0; } | 96 virtual WebScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve(WebF
loatPoint targetValue, WebCompositorAnimationCurve::TimingFunctionType) { return
nullptr; } |
97 | 97 |
98 virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return
0; } | 98 virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return
nullptr; } |
99 | 99 |
100 virtual WebTransformOperations* createTransformOperations() { return 0; } | 100 virtual WebTransformOperations* createTransformOperations() { return nullptr
; } |
101 | 101 |
102 virtual WebFilterOperations* createFilterOperations() { return 0; } | 102 virtual WebFilterOperations* createFilterOperations() { return nullptr; } |
103 | 103 |
104 virtual WebCompositorAnimationPlayer* createAnimationPlayer() { return 0; } | 104 virtual WebCompositorAnimationPlayer* createAnimationPlayer() { return nullp
tr; } |
105 | 105 |
106 virtual WebCompositorAnimationTimeline* createAnimationTimeline() { return 0
; } | 106 virtual WebCompositorAnimationTimeline* createAnimationTimeline() { return n
ullptr; } |
107 | 107 |
108 protected: | 108 protected: |
109 virtual ~WebCompositorSupport() { } | 109 virtual ~WebCompositorSupport() { } |
110 }; | 110 }; |
111 | 111 |
112 } | 112 } |
113 | 113 |
114 #endif // WebCompositorSupport_h | 114 #endif // WebCompositorSupport_h |
OLD | NEW |