| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <string.h> | 5 #include <string.h> |
| 6 #include <time.h> | 6 #include <time.h> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "skia/ext/convolver.h" | 9 #include "skia/ext/convolver.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 input[src_offset + src_row_stride] + // Lower left. | 116 input[src_offset + src_row_stride] + // Lower left. |
| 117 input[src_offset + src_row_stride + 4]; // Lower right. | 117 input[src_offset + src_row_stride + 4]; // Lower right. |
| 118 value /= 4; // Average. | 118 value /= 4; // Average. |
| 119 int difference = value - output[(y * dest_width + x) * 4 + channel]; | 119 int difference = value - output[(y * dest_width + x) * 4 + channel]; |
| 120 EXPECT_TRUE(difference >= -1 || difference <= 1); | 120 EXPECT_TRUE(difference >= -1 || difference <= 1); |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace gfx | 126 } // namespace skia |
| 127 | 127 |
| OLD | NEW |