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/output/software_renderer.h" | 5 #include "cc/output/software_renderer.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
| 9 #include "base/bind.h" |
9 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "cc/output/compositor_frame_metadata.h" | 12 #include "cc/output/compositor_frame_metadata.h" |
12 #include "cc/output/copy_output_request.h" | 13 #include "cc/output/copy_output_request.h" |
13 #include "cc/output/copy_output_result.h" | 14 #include "cc/output/copy_output_result.h" |
14 #include "cc/output/software_output_device.h" | 15 #include "cc/output/software_output_device.h" |
15 #include "cc/quads/render_pass.h" | 16 #include "cc/quads/render_pass.h" |
16 #include "cc/quads/render_pass_draw_quad.h" | 17 #include "cc/quads/render_pass_draw_quad.h" |
17 #include "cc/quads/solid_color_draw_quad.h" | 18 #include "cc/quads/solid_color_draw_quad.h" |
18 #include "cc/quads/tile_draw_quad.h" | 19 #include "cc/quads/tile_draw_quad.h" |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 viewport_rect, clip_rect); | 452 viewport_rect, clip_rect); |
452 | 453 |
453 // The damage rect should be reported to the SoftwareOutputDevice. | 454 // The damage rect should be reported to the SoftwareOutputDevice. |
454 EXPECT_EQ(gfx::Rect(2, 2, 3, 3), device->damage_rect_at_start()); | 455 EXPECT_EQ(gfx::Rect(2, 2, 3, 3), device->damage_rect_at_start()); |
455 // The SkCanvas should be clipped to the damage rect. | 456 // The SkCanvas should be clipped to the damage rect. |
456 EXPECT_EQ(gfx::Rect(2, 2, 3, 3), device->clip_rect_at_end()); | 457 EXPECT_EQ(gfx::Rect(2, 2, 3, 3), device->clip_rect_at_end()); |
457 } | 458 } |
458 | 459 |
459 } // namespace | 460 } // namespace |
460 } // namespace cc | 461 } // namespace cc |
OLD | NEW |