| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/playback/raster_source.h" | 5 #include "cc/raster/raster_source.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "cc/test/fake_recording_source.h" | 11 #include "cc/test/fake_recording_source.h" |
| 12 #include "cc/test/skia_common.h" | 12 #include "cc/test/skia_common.h" |
| 13 #include "cc/tiles/software_image_decode_cache.h" | 13 #include "cc/tiles/software_image_decode_cache.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "third_party/skia/include/core/SkPixelRef.h" | 15 #include "third_party/skia/include/core/SkPixelRef.h" |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(0, 24)); | 603 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(0, 24)); |
| 604 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(49, 24)); | 604 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(49, 24)); |
| 605 for (int x = 0; x < 49; ++x) | 605 for (int x = 0; x < 49; ++x) |
| 606 EXPECT_EQ(SK_ColorRED, bitmap.getColor(x, 12)); | 606 EXPECT_EQ(SK_ColorRED, bitmap.getColor(x, 12)); |
| 607 for (int y = 0; y < 24; ++y) | 607 for (int y = 0; y < 24; ++y) |
| 608 EXPECT_EQ(SK_ColorRED, bitmap.getColor(24, y)); | 608 EXPECT_EQ(SK_ColorRED, bitmap.getColor(24, y)); |
| 609 } | 609 } |
| 610 | 610 |
| 611 } // namespace | 611 } // namespace |
| 612 } // namespace cc | 612 } // namespace cc |
| OLD | NEW |