| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef WebCompositorSupport_h | 26 #ifndef WebCompositorSupport_h |
| 27 #define WebCompositorSupport_h | 27 #define WebCompositorSupport_h |
| 28 | 28 |
| 29 #include "WebCommon.h" | 29 #include "WebCommon.h" |
| 30 #include "WebCompositorAnimation.h" | 30 #include "WebCompositorAnimation.h" |
| 31 #include "WebCompositorAnimationCurve.h" | 31 #include "WebCompositorAnimationCurve.h" |
| 32 #include "WebFloatPoint.h" | 32 #include "WebFloatPoint.h" |
| 33 #include "WebLayerTreeView.h" | 33 #include "WebLayerTreeView.h" |
| 34 #include "WebScrollbar.h" | |
| 35 #include "WebScrollbarThemePainter.h" | |
| 36 | 34 |
| 37 namespace blink { | 35 namespace blink { |
| 38 | 36 |
| 39 class WebCompositorAnimationCurve; | 37 class WebCompositorAnimationCurve; |
| 40 class WebCompositorOutputSurface; | 38 class WebCompositorOutputSurface; |
| 41 class WebContentLayer; | 39 class WebContentLayer; |
| 42 class WebContentLayerClient; | 40 class WebContentLayerClient; |
| 43 class WebExternalTextureLayer; | 41 class WebExternalTextureLayer; |
| 44 class WebExternalTextureLayerClient; | 42 class WebExternalTextureLayerClient; |
| 45 class WebFilterAnimationCurve; | 43 class WebFilterAnimationCurve; |
| 46 class WebFilterOperations; | 44 class WebFilterOperations; |
| 47 class WebFloatAnimationCurve; | 45 class WebFloatAnimationCurve; |
| 48 class WebGraphicsContext3D; | 46 class WebGraphicsContext3D; |
| 49 class WebImageLayer; | 47 class WebImageLayer; |
| 50 class WebLayer; | 48 class WebLayer; |
| 51 class WebScrollbarLayer; | |
| 52 class WebScrollbarThemeGeometry; | |
| 53 class WebScrollOffsetAnimationCurve; | |
| 54 class WebTransformAnimationCurve; | 49 class WebTransformAnimationCurve; |
| 55 class WebTransformOperations; | 50 class WebTransformOperations; |
| 56 | 51 |
| 57 class WebCompositorSupport { | 52 class WebCompositorSupport { |
| 58 public: | 53 public: |
| 59 // Creates an output surface for the compositor backed by a 3d context. | 54 // Creates an output surface for the compositor backed by a 3d context. |
| 60 virtual WebCompositorOutputSurface* createOutputSurfaceFor3D(WebGraphicsCont
ext3D*) { return 0; } | 55 virtual WebCompositorOutputSurface* createOutputSurfaceFor3D(WebGraphicsCont
ext3D*) { return 0; } |
| 61 | 56 |
| 62 // Creates an output surface for the compositor backed by a software device. | 57 // Creates an output surface for the compositor backed by a software device. |
| 63 virtual WebCompositorOutputSurface* createOutputSurfaceForSoftware() { retur
n 0; } | 58 virtual WebCompositorOutputSurface* createOutputSurfaceForSoftware() { retur
n 0; } |
| 64 | 59 |
| 65 // Layers ------------------------------------------------------- | 60 // Layers ------------------------------------------------------- |
| 66 | 61 |
| 67 virtual WebLayer* createLayer() { return 0; } | 62 virtual WebLayer* createLayer() { return 0; } |
| 68 | 63 |
| 69 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
0; } | 64 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
0; } |
| 70 | 65 |
| 71 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu
reLayerClient*) { return 0; } | 66 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu
reLayerClient*) { return 0; } |
| 72 | 67 |
| 73 virtual WebImageLayer* createImageLayer() { return 0; } | 68 virtual WebImageLayer* createImageLayer() { return 0; } |
| 74 | 69 |
| 75 // Animation ---------------------------------------------------- | 70 // Animation ---------------------------------------------------- |
| 76 | 71 |
| 77 virtual WebCompositorAnimation* createAnimation(const WebCompositorAnimation
Curve&, WebCompositorAnimation::TargetProperty, int animationId = 0) { return 0;
} | 72 virtual WebCompositorAnimation* createAnimation(const WebCompositorAnimation
Curve&, WebCompositorAnimation::TargetProperty, int animationId = 0) { return 0;
} |
| 78 | 73 |
| 79 virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return 0; } | 74 virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return 0; } |
| 80 | 75 |
| 81 virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return 0; } | 76 virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return 0; } |
| 82 | 77 |
| 83 virtual WebScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve(WebF
loatPoint targetValue, WebCompositorAnimationCurve::TimingFunctionType) { return
0; } | |
| 84 | |
| 85 virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return
0; } | 78 virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return
0; } |
| 86 | 79 |
| 87 virtual WebTransformOperations* createTransformOperations() { return 0; } | 80 virtual WebTransformOperations* createTransformOperations() { return 0; } |
| 88 | 81 |
| 89 virtual WebFilterOperations* createFilterOperations() { return 0; } | 82 virtual WebFilterOperations* createFilterOperations() { return 0; } |
| 90 | 83 |
| 91 protected: | 84 protected: |
| 92 virtual ~WebCompositorSupport() { } | 85 virtual ~WebCompositorSupport() { } |
| 93 }; | 86 }; |
| 94 | 87 |
| 95 } | 88 } |
| 96 | 89 |
| 97 #endif // WebCompositorSupport_h | 90 #endif // WebCompositorSupport_h |
| OLD | NEW |