OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 12 matching lines...) Expand all Loading... |
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
27 * SUCH DAMAGE. | 27 * SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef CustomFilterMeshGenerator_h | 30 #ifndef CustomFilterMeshGenerator_h |
31 #define CustomFilterMeshGenerator_h | 31 #define CustomFilterMeshGenerator_h |
32 | 32 |
33 #if USE(3D_GRAPHICS) | |
34 | |
35 #include "core/platform/graphics/FloatRect.h" | 33 #include "core/platform/graphics/FloatRect.h" |
36 #include "core/platform/graphics/filters/custom/CustomFilterConstants.h" | 34 #include "core/platform/graphics/filters/custom/CustomFilterConstants.h" |
37 #include "core/platform/graphics/filters/custom/CustomFilterOperation.h" | 35 #include "core/platform/graphics/filters/custom/CustomFilterOperation.h" |
38 | 36 |
39 namespace WebCore { | 37 namespace WebCore { |
40 | 38 |
41 class CustomFilterMeshGenerator { | 39 class CustomFilterMeshGenerator { |
42 public: | 40 public: |
43 // Lines and columns are the values passed in CSS. The result is vertex mesh
that has 'rows' numbers of rows | 41 // Lines and columns are the values passed in CSS. The result is vertex mesh
that has 'rows' numbers of rows |
44 // and 'columns' number of columns with a total of 'rows + 1' * 'columns + 1
' vertices. | 42 // and 'columns' number of columns with a total of 'rows + 1' * 'columns + 1
' vertices. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 CustomFilterMeshType m_meshType; | 111 CustomFilterMeshType m_meshType; |
114 IntSize m_points; | 112 IntSize m_points; |
115 IntSize m_tiles; | 113 IntSize m_tiles; |
116 FloatSize m_tileSizeInPixels; | 114 FloatSize m_tileSizeInPixels; |
117 FloatSize m_tileSizeInDeviceSpace; | 115 FloatSize m_tileSizeInDeviceSpace; |
118 FloatRect m_meshBox; | 116 FloatRect m_meshBox; |
119 }; | 117 }; |
120 | 118 |
121 } // namespace WebCore | 119 } // namespace WebCore |
122 | 120 |
123 #endif // USE(3D_GRAPHICS) | |
124 | |
125 #endif // CustomFilterMeshGenerator_h | 121 #endif // CustomFilterMeshGenerator_h |
OLD | NEW |