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/software_renderer.h" |
6 | 6 |
7 #include "cc/quad_sink.h" | 7 #include "cc/quad_sink.h" |
8 #include "cc/render_pass.h" | 8 #include "cc/render_pass.h" |
9 #include "cc/render_pass_draw_quad.h" | 9 #include "cc/render_pass_draw_quad.h" |
10 #include "cc/settings.h" | |
11 #include "cc/solid_color_draw_quad.h" | 10 #include "cc/solid_color_draw_quad.h" |
12 #include "cc/test/animation_test_common.h" | 11 #include "cc/test/animation_test_common.h" |
13 #include "cc/test/fake_web_compositor_output_surface.h" | 12 #include "cc/test/fake_web_compositor_output_surface.h" |
14 #include "cc/test/fake_web_compositor_software_output_device.h" | 13 #include "cc/test/fake_web_compositor_software_output_device.h" |
15 #include "cc/test/geometry_test_utils.h" | 14 #include "cc/test/geometry_test_utils.h" |
16 #include "cc/test/render_pass_test_common.h" | 15 #include "cc/test/render_pass_test_common.h" |
17 #include "cc/test/test_common.h" | |
18 #include "cc/tile_draw_quad.h" | 16 #include "cc/tile_draw_quad.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
21 | 19 |
22 using namespace WebKit; | 20 using namespace WebKit; |
23 using namespace WebKitTests; | 21 using namespace WebKitTests; |
24 | 22 |
25 namespace cc { | 23 namespace cc { |
26 namespace { | 24 namespace { |
27 | 25 |
(...skipping 115 matching lines...) Loading... |
143 renderer()->getFramebufferPixels(pixels.get(), outerRect); | 141 renderer()->getFramebufferPixels(pixels.get(), outerRect); |
144 | 142 |
145 EXPECT_EQ(SK_ColorYELLOW, pixels[0]); | 143 EXPECT_EQ(SK_ColorYELLOW, pixels[0]); |
146 EXPECT_EQ(SK_ColorYELLOW, pixels[outerPixels - 1]); | 144 EXPECT_EQ(SK_ColorYELLOW, pixels[outerPixels - 1]); |
147 EXPECT_EQ(SK_ColorCYAN, pixels[outerSize.width() + 1]); | 145 EXPECT_EQ(SK_ColorCYAN, pixels[outerSize.width() + 1]); |
148 EXPECT_EQ(SK_ColorCYAN, pixels[outerPixels - outerSize.width() - 2]); | 146 EXPECT_EQ(SK_ColorCYAN, pixels[outerPixels - outerSize.width() - 2]); |
149 } | 147 } |
150 | 148 |
151 } // namespace | 149 } // namespace |
152 } // namespace cc | 150 } // namespace cc |
OLD | NEW |