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 "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
9 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
10 #include "cc/output/compositor_frame_ack.h" | 10 #include "cc/output/compositor_frame_ack.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "cc/quads/tile_draw_quad.h" | 22 #include "cc/quads/tile_draw_quad.h" |
23 #include "cc/resources/raster_worker_pool.h" | 23 #include "cc/resources/raster_worker_pool.h" |
24 #include "skia/ext/opacity_draw_filter.h" | 24 #include "skia/ext/opacity_draw_filter.h" |
25 #include "third_party/skia/include/core/SkBitmapDevice.h" | 25 #include "third_party/skia/include/core/SkBitmapDevice.h" |
26 #include "third_party/skia/include/core/SkCanvas.h" | 26 #include "third_party/skia/include/core/SkCanvas.h" |
27 #include "third_party/skia/include/core/SkColor.h" | 27 #include "third_party/skia/include/core/SkColor.h" |
28 #include "third_party/skia/include/core/SkImageFilter.h" | 28 #include "third_party/skia/include/core/SkImageFilter.h" |
29 #include "third_party/skia/include/core/SkMatrix.h" | 29 #include "third_party/skia/include/core/SkMatrix.h" |
30 #include "third_party/skia/include/core/SkShader.h" | 30 #include "third_party/skia/include/core/SkShader.h" |
31 #include "third_party/skia/include/effects/SkLayerRasterizer.h" | 31 #include "third_party/skia/include/effects/SkLayerRasterizer.h" |
32 #include "ui/gfx/rect_conversions.h" | 32 #include "ui/gfx/geometry/rect_conversions.h" |
33 #include "ui/gfx/skia_util.h" | 33 #include "ui/gfx/skia_util.h" |
34 #include "ui/gfx/transform.h" | 34 #include "ui/gfx/transform.h" |
35 | 35 |
36 namespace cc { | 36 namespace cc { |
37 | 37 |
38 namespace { | 38 namespace { |
39 | 39 |
40 class OnDemandRasterTaskImpl : public Task { | 40 class OnDemandRasterTaskImpl : public Task { |
41 public: | 41 public: |
42 OnDemandRasterTaskImpl(PicturePileImpl* picture_pile, | 42 OnDemandRasterTaskImpl(PicturePileImpl* picture_pile, |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 } | 646 } |
647 | 647 |
648 void SoftwareRenderer::DidChangeVisibility() { | 648 void SoftwareRenderer::DidChangeVisibility() { |
649 if (visible()) | 649 if (visible()) |
650 EnsureBackbuffer(); | 650 EnsureBackbuffer(); |
651 else | 651 else |
652 DiscardBackbuffer(); | 652 DiscardBackbuffer(); |
653 } | 653 } |
654 | 654 |
655 } // namespace cc | 655 } // namespace cc |
OLD | NEW |