OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> |
| 6 |
5 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
6 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
7 #include "cc/test/geometry_test_utils.h" | 9 #include "cc/test/geometry_test_utils.h" |
8 #include "skia/ext/pixel_ref_utils.h" | 10 #include "skia/ext/pixel_ref_utils.h" |
9 #include "skia/ext/refptr.h" | 11 #include "skia/ext/refptr.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
12 #include "third_party/skia/include/core/SkCanvas.h" | 14 #include "third_party/skia/include/core/SkCanvas.h" |
13 #include "third_party/skia/include/core/SkImage.h" | 15 #include "third_party/skia/include/core/SkImage.h" |
14 #include "third_party/skia/include/core/SkImageGenerator.h" | 16 #include "third_party/skia/include/core/SkImageGenerator.h" |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 gfx::SkRectToRectF(pixel_refs[2].pixel_ref_rect)); | 646 gfx::SkRectToRectF(pixel_refs[2].pixel_ref_rect)); |
645 VerifyScales(2.f, 2.f, pixel_refs[2].matrix, __LINE__); | 647 VerifyScales(2.f, 2.f, pixel_refs[2].matrix, __LINE__); |
646 EXPECT_EQ(kNone_SkFilterQuality, pixel_refs[2].filter_quality); | 648 EXPECT_EQ(kNone_SkFilterQuality, pixel_refs[2].filter_quality); |
647 EXPECT_FLOAT_RECT_EQ(gfx::RectF(0, 30, 100, 100), | 649 EXPECT_FLOAT_RECT_EQ(gfx::RectF(0, 30, 100, 100), |
648 gfx::SkRectToRectF(pixel_refs[3].pixel_ref_rect)); | 650 gfx::SkRectToRectF(pixel_refs[3].pixel_ref_rect)); |
649 VerifyScales(2.f, 2.f, pixel_refs[3].matrix, __LINE__); | 651 VerifyScales(2.f, 2.f, pixel_refs[3].matrix, __LINE__); |
650 EXPECT_EQ(kNone_SkFilterQuality, pixel_refs[3].filter_quality); | 652 EXPECT_EQ(kNone_SkFilterQuality, pixel_refs[3].filter_quality); |
651 } | 653 } |
652 | 654 |
653 } // namespace skia | 655 } // namespace skia |
OLD | NEW |