OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "Test.h" | 8 #include "Test.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkShader.h" | 10 #include "SkShader.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 for (int y = 0; y < r.height(); ++y) { | 56 for (int y = 0; y < r.height(); ++y) { |
57 const SkPMColor* filterPtr = filterResult.getAddr32(0, y); | 57 const SkPMColor* filterPtr = filterResult.getAddr32(0, y); |
58 const SkPMColor* shaderPtr = shaderResult.getAddr32(0, y); | 58 const SkPMColor* shaderPtr = shaderResult.getAddr32(0, y); |
59 for (int x = 0; x < r.width(); ++x, ++filterPtr, ++shaderPtr) { | 59 for (int x = 0; x < r.width(); ++x, ++filterPtr, ++shaderPtr) { |
60 REPORTER_ASSERT(reporter, *filterPtr == *shaderPtr); | 60 REPORTER_ASSERT(reporter, *filterPtr == *shaderPtr); |
61 } | 61 } |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 #include "TestClassDef.h" | 65 #include "TestClassDef.h" |
66 DEFINE_TESTCLASS("ShaderImageFilter", ShaderImageFilterTestClass, test_asShaderM
ode) | 66 DEFINE_TESTCLASS_SHORT(test_asShaderMode) |
OLD | NEW |