| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "cc/software_renderer.h" | 5 #include "cc/output/software_renderer.h" |
| 6 | 6 |
| 7 #include "cc/compositor_frame_metadata.h" | 7 #include "cc/output/compositor_frame_metadata.h" |
| 8 #include "cc/output/software_output_device.h" |
| 8 #include "cc/quad_sink.h" | 9 #include "cc/quad_sink.h" |
| 9 #include "cc/render_pass.h" | 10 #include "cc/render_pass.h" |
| 10 #include "cc/render_pass_draw_quad.h" | 11 #include "cc/render_pass_draw_quad.h" |
| 11 #include "cc/software_output_device.h" | |
| 12 #include "cc/solid_color_draw_quad.h" | 12 #include "cc/solid_color_draw_quad.h" |
| 13 #include "cc/test/animation_test_common.h" | 13 #include "cc/test/animation_test_common.h" |
| 14 #include "cc/test/fake_output_surface.h" | 14 #include "cc/test/fake_output_surface.h" |
| 15 #include "cc/test/geometry_test_utils.h" | 15 #include "cc/test/geometry_test_utils.h" |
| 16 #include "cc/test/render_pass_test_common.h" | 16 #include "cc/test/render_pass_test_common.h" |
| 17 #include "cc/test/render_pass_test_utils.h" | 17 #include "cc/test/render_pass_test_utils.h" |
| 18 #include "cc/tile_draw_quad.h" | 18 #include "cc/tile_draw_quad.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // If we didn't clear, the borders should still be green. | 198 // If we didn't clear, the borders should still be green. |
| 199 EXPECT_EQ(SK_ColorGREEN, pixels[0]); | 199 EXPECT_EQ(SK_ColorGREEN, pixels[0]); |
| 200 EXPECT_EQ(SK_ColorGREEN, pixels[viewportPixels - 1]); | 200 EXPECT_EQ(SK_ColorGREEN, pixels[viewportPixels - 1]); |
| 201 | 201 |
| 202 EXPECT_EQ(SK_ColorMAGENTA, pixels[smallerRect.y() * viewportRect.width() + s
mallerRect.x()]); | 202 EXPECT_EQ(SK_ColorMAGENTA, pixels[smallerRect.y() * viewportRect.width() + s
mallerRect.x()]); |
| 203 EXPECT_EQ(SK_ColorMAGENTA, pixels[(smallerRect.bottom() - 1) * viewportRect.
width() + smallerRect.right() - 1]); | 203 EXPECT_EQ(SK_ColorMAGENTA, pixels[(smallerRect.bottom() - 1) * viewportRect.
width() + smallerRect.right() - 1]); |
| 204 } | 204 } |
| 205 | 205 |
| 206 } // namespace | 206 } // namespace |
| 207 } // namespace cc | 207 } // namespace cc |
| OLD | NEW |