| 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 29 matching lines...) Expand all Loading... |
| 40 class WebCompositorOutputSurface; | 40 class WebCompositorOutputSurface; |
| 41 class WebContentLayer; | 41 class WebContentLayer; |
| 42 class WebContentLayerClient; | 42 class WebContentLayerClient; |
| 43 class WebExternalTextureLayer; | 43 class WebExternalTextureLayer; |
| 44 class WebExternalTextureLayerClient; | 44 class WebExternalTextureLayerClient; |
| 45 class WebFilterAnimationCurve; | 45 class WebFilterAnimationCurve; |
| 46 class WebFilterOperations; | 46 class WebFilterOperations; |
| 47 class WebFloatAnimationCurve; | 47 class WebFloatAnimationCurve; |
| 48 class WebGraphicsContext3D; | 48 class WebGraphicsContext3D; |
| 49 class WebImageLayer; | 49 class WebImageLayer; |
| 50 class WebNinePatchLayer; | |
| 51 class WebLayer; | 50 class WebLayer; |
| 52 class WebScrollbarLayer; | 51 class WebScrollbarLayer; |
| 53 class WebScrollbarThemeGeometry; | 52 class WebScrollbarThemeGeometry; |
| 54 class WebScrollOffsetAnimationCurve; | 53 class WebScrollOffsetAnimationCurve; |
| 55 class WebTransformAnimationCurve; | 54 class WebTransformAnimationCurve; |
| 56 class WebTransformOperations; | 55 class WebTransformOperations; |
| 57 | 56 |
| 58 class WebCompositorSupport { | 57 class WebCompositorSupport { |
| 59 public: | 58 public: |
| 60 // Creates an output surface for the compositor backed by a 3d context. | 59 // Creates an output surface for the compositor backed by a 3d context. |
| 61 virtual WebCompositorOutputSurface* createOutputSurfaceFor3D(WebGraphicsCont
ext3D*) { return 0; } | 60 virtual WebCompositorOutputSurface* createOutputSurfaceFor3D(WebGraphicsCont
ext3D*) { return 0; } |
| 62 | 61 |
| 63 // Creates an output surface for the compositor backed by a software device. | 62 // Creates an output surface for the compositor backed by a software device. |
| 64 virtual WebCompositorOutputSurface* createOutputSurfaceForSoftware() { retur
n 0; } | 63 virtual WebCompositorOutputSurface* createOutputSurfaceForSoftware() { retur
n 0; } |
| 65 | 64 |
| 66 // Layers ------------------------------------------------------- | 65 // Layers ------------------------------------------------------- |
| 67 | 66 |
| 68 virtual WebLayer* createLayer() { return 0; } | 67 virtual WebLayer* createLayer() { return 0; } |
| 69 | 68 |
| 70 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
0; } | 69 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
0; } |
| 71 | 70 |
| 72 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu
reLayerClient*) { return 0; } | 71 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu
reLayerClient*) { return 0; } |
| 73 | 72 |
| 74 virtual WebImageLayer* createImageLayer() { return 0; } | 73 virtual WebImageLayer* createImageLayer() { return 0; } |
| 75 | 74 |
| 76 virtual WebNinePatchLayer* createNinePatchLayer() { return 0; } | |
| 77 | |
| 78 // The ownership of the WebScrollbarThemeGeometry pointer is passed to Chrom
ium. | 75 // The ownership of the WebScrollbarThemeGeometry pointer is passed to Chrom
ium. |
| 79 virtual WebScrollbarLayer* createScrollbarLayer(WebScrollbar*, WebScrollbarT
hemePainter, WebScrollbarThemeGeometry*) { return 0; } | 76 virtual WebScrollbarLayer* createScrollbarLayer(WebScrollbar*, WebScrollbarT
hemePainter, WebScrollbarThemeGeometry*) { return 0; } |
| 80 | 77 |
| 81 virtual WebScrollbarLayer* createSolidColorScrollbarLayer(WebScrollbar::Orie
ntation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar) {
return 0; } | 78 virtual WebScrollbarLayer* createSolidColorScrollbarLayer(WebScrollbar::Orie
ntation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar) {
return 0; } |
| 82 | 79 |
| 83 // Animation ---------------------------------------------------- | 80 // Animation ---------------------------------------------------- |
| 84 | 81 |
| 85 virtual WebCompositorAnimation* createAnimation(const WebCompositorAnimation
Curve&, WebCompositorAnimation::TargetProperty, int animationId = 0) { return 0;
} | 82 virtual WebCompositorAnimation* createAnimation(const WebCompositorAnimation
Curve&, WebCompositorAnimation::TargetProperty, int animationId = 0) { return 0;
} |
| 86 | 83 |
| 87 virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return 0; } | 84 virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return 0; } |
| 88 | 85 |
| 89 virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return 0; } | 86 virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return 0; } |
| 90 | 87 |
| 91 virtual WebScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve(WebF
loatPoint targetValue, WebCompositorAnimationCurve::TimingFunctionType) { return
0; } | 88 virtual WebScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve(WebF
loatPoint targetValue, WebCompositorAnimationCurve::TimingFunctionType) { return
0; } |
| 92 | 89 |
| 93 virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return
0; } | 90 virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return
0; } |
| 94 | 91 |
| 95 virtual WebTransformOperations* createTransformOperations() { return 0; } | 92 virtual WebTransformOperations* createTransformOperations() { return 0; } |
| 96 | 93 |
| 97 virtual WebFilterOperations* createFilterOperations() { return 0; } | 94 virtual WebFilterOperations* createFilterOperations() { return 0; } |
| 98 | 95 |
| 99 protected: | 96 protected: |
| 100 virtual ~WebCompositorSupport() { } | 97 virtual ~WebCompositorSupport() { } |
| 101 }; | 98 }; |
| 102 | 99 |
| 103 } | 100 } |
| 104 | 101 |
| 105 #endif // WebCompositorSupport_h | 102 #endif // WebCompositorSupport_h |
| OLD | NEW |