Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: Source/platform/graphics/filters/custom/CustomFilterMeshGenerator.cpp

Issue 34273002: Remove UnusedParam.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698