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

Unified Diff: core/win/d3d9/effect_d3d9.cc

Issue 147129: Adding in most of the unit tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/core.gyp ('k') | import/cross/memory_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/win/d3d9/effect_d3d9.cc
===================================================================
--- core/win/d3d9/effect_d3d9.cc (revision 19743)
+++ core/win/d3d9/effect_d3d9.cc (working copy)
@@ -254,7 +254,7 @@
<< "number of params in ParamArray does not match number of params "
<< "needed by shader array";
} else {
- for (int i = 0; i < size; ++i) {
+ for (unsigned i = 0; i < size; ++i) {
SamplerUnitIndexArray& index_array = sampler_unit_index_arrays_[i];
Param* untyped_element = param->GetUntypedParam(i);
// TODO(gman): Make this check happen when building the param cache.
@@ -297,7 +297,7 @@
if (param) {
unsigned size = param->size();
if (size == sampler_unit_index_arrays_.size()) {
- for (int i = 0; i < size; ++i) {
+ for (unsigned i = 0; i < size; ++i) {
SamplerUnitIndexArray& index_array = sampler_unit_index_arrays_[i];
Param* untyped_element = param->GetUntypedParam(i);
// TODO(gman): Make this check happen when building the param cache.
« no previous file with comments | « core/core.gyp ('k') | import/cross/memory_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698