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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 generateAttachedMesh(); | 66 generateAttachedMesh(); |
67 else | 67 else |
68 generateDetachedMesh(); | 68 generateDetachedMesh(); |
69 | 69 |
70 #ifndef NDEBUG | 70 #ifndef NDEBUG |
71 if (s_dumpCustomFilterMeshBuffers) | 71 if (s_dumpCustomFilterMeshBuffers) |
72 dumpBuffers(); | 72 dumpBuffers(); |
73 #endif | 73 #endif |
74 } | 74 } |
75 | 75 |
76 void CustomFilterMeshGenerator::addAttachedMeshIndex(int quadX, int quadY, int t
riangleX, int triangleY, int triangle) | 76 void CustomFilterMeshGenerator::addAttachedMeshIndex(int quadX, int quadY, int t
riangleX, int triangleY, int) |
77 { | 77 { |
78 UNUSED_PARAM(triangle); | |
79 m_indices.append((quadY + triangleY) * m_points.width() + (quadX + triangleX
)); | 78 m_indices.append((quadY + triangleY) * m_points.width() + (quadX + triangleX
)); |
80 } | 79 } |
81 | 80 |
82 void CustomFilterMeshGenerator::generateAttachedMesh() | 81 void CustomFilterMeshGenerator::generateAttachedMesh() |
83 { | 82 { |
84 for (int j = 0; j < m_points.height(); ++j) { | 83 for (int j = 0; j < m_points.height(); ++j) { |
85 for (int i = 0; i < m_points.width(); ++i) | 84 for (int i = 0; i < m_points.width(); ++i) |
86 addAttachedMeshVertexAttributes(i, j); | 85 addAttachedMeshVertexAttributes(i, j); |
87 } | 86 } |
88 | 87 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 printf("\n\t"); | 162 printf("\n\t"); |
164 } | 163 } |
165 printf("\n---Indices: "); | 164 printf("\n---Indices: "); |
166 for (unsigned i = 0; i < m_indices.size(); ++i) | 165 for (unsigned i = 0; i < m_indices.size(); ++i) |
167 printf("%d ", m_indices.at(i)); | 166 printf("%d ", m_indices.at(i)); |
168 printf("\n"); | 167 printf("\n"); |
169 } | 168 } |
170 #endif | 169 #endif |
171 | 170 |
172 } // namespace WebCore | 171 } // namespace WebCore |
OLD | NEW |