OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 7 #include <algorithm> |
8 #include <numeric> | 8 #include <numeric> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/time.h" | 13 #include "base/time/time.h" |
14 #include "skia/ext/convolver.h" | 14 #include "skia/ext/convolver.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
17 #include "third_party/skia/include/core/SkColorPriv.h" | 17 #include "third_party/skia/include/core/SkColorPriv.h" |
18 #include "third_party/skia/include/core/SkRect.h" | 18 #include "third_party/skia/include/core/SkRect.h" |
19 #include "third_party/skia/include/core/SkTypes.h" | 19 #include "third_party/skia/include/core/SkTypes.h" |
20 | 20 |
21 namespace skia { | 21 namespace skia { |
22 | 22 |
23 namespace { | 23 namespace { |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 fp_gradient_kernel.end()), -1.5f); | 520 fp_gradient_kernel.end()), -1.5f); |
521 EXPECT_LT(*std::min_element(fp_gradient_kernel.begin(), | 521 EXPECT_LT(*std::min_element(fp_gradient_kernel.begin(), |
522 fp_gradient_kernel.end()), 0.0f); | 522 fp_gradient_kernel.end()), 0.0f); |
523 EXPECT_LT(*std::max_element(fp_gradient_kernel.begin(), | 523 EXPECT_LT(*std::max_element(fp_gradient_kernel.begin(), |
524 fp_gradient_kernel.end()), 1.5f); | 524 fp_gradient_kernel.end()), 1.5f); |
525 EXPECT_GT(*std::max_element(fp_gradient_kernel.begin(), | 525 EXPECT_GT(*std::max_element(fp_gradient_kernel.begin(), |
526 fp_gradient_kernel.end()), 0.0f); | 526 fp_gradient_kernel.end()), 0.0f); |
527 } | 527 } |
528 | 528 |
529 } // namespace skia | 529 } // namespace skia |
OLD | NEW |