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 "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "cc/base/math_util.h" |
8 #include "cc/compositor_frame.h" | 9 #include "cc/compositor_frame.h" |
9 #include "cc/compositor_frame_ack.h" | 10 #include "cc/compositor_frame_ack.h" |
10 #include "cc/compositor_frame_metadata.h" | 11 #include "cc/compositor_frame_metadata.h" |
11 #include "cc/debug_border_draw_quad.h" | 12 #include "cc/debug_border_draw_quad.h" |
12 #include "cc/math_util.h" | |
13 #include "cc/output_surface.h" | 13 #include "cc/output_surface.h" |
14 #include "cc/render_pass_draw_quad.h" | 14 #include "cc/render_pass_draw_quad.h" |
15 #include "cc/software_output_device.h" | 15 #include "cc/software_output_device.h" |
16 #include "cc/solid_color_draw_quad.h" | 16 #include "cc/solid_color_draw_quad.h" |
17 #include "cc/texture_draw_quad.h" | 17 #include "cc/texture_draw_quad.h" |
18 #include "cc/tile_draw_quad.h" | 18 #include "cc/tile_draw_quad.h" |
19 #include "third_party/skia/include/core/SkCanvas.h" | 19 #include "third_party/skia/include/core/SkCanvas.h" |
20 #include "third_party/skia/include/core/SkColor.h" | 20 #include "third_party/skia/include/core/SkColor.h" |
21 #include "third_party/skia/include/core/SkDevice.h" | 21 #include "third_party/skia/include/core/SkDevice.h" |
22 #include "third_party/skia/include/core/SkMatrix.h" | 22 #include "third_party/skia/include/core/SkMatrix.h" |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 4 * rect.width()); | 409 4 * rect.width()); |
410 } | 410 } |
411 | 411 |
412 void SoftwareRenderer::SetVisible(bool visible) { | 412 void SoftwareRenderer::SetVisible(bool visible) { |
413 if (visible_ == visible) | 413 if (visible_ == visible) |
414 return; | 414 return; |
415 visible_ = visible; | 415 visible_ = visible; |
416 } | 416 } |
417 | 417 |
418 } // namespace cc | 418 } // namespace cc |
OLD | NEW |