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 <algorithm> | 5 #include <algorithm> |
6 #include <limits> | 6 #include <limits> |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
10 #include "cc/base/region.h" | 10 #include "cc/base/region.h" |
11 #include "cc/debug/debug_colors.h" | 11 #include "cc/debug/debug_colors.h" |
12 #include "cc/resources/picture_pile_impl.h" | 12 #include "cc/resources/picture_pile_impl.h" |
13 #include "cc/resources/raster_source_helper.h" | 13 #include "cc/resources/raster_source_helper.h" |
14 #include "skia/ext/analysis_canvas.h" | 14 #include "skia/ext/analysis_canvas.h" |
15 #include "third_party/skia/include/core/SkCanvas.h" | 15 #include "third_party/skia/include/core/SkCanvas.h" |
16 #include "third_party/skia/include/core/SkPictureRecorder.h" | 16 #include "third_party/skia/include/core/SkPictureRecorder.h" |
17 #include "ui/gfx/geometry/rect_conversions.h" | 17 #include "ui/gfx/geometry/rect_conversions.h" |
18 | 18 |
19 namespace { | 19 namespace { |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 ++it) { | 458 ++it) { |
459 const Picture* picture = it->second.GetPicture(); | 459 const Picture* picture = it->second.GetPicture(); |
460 if (picture && (processed_pictures.count(picture) == 0)) { | 460 if (picture && (processed_pictures.count(picture) == 0)) { |
461 picture->EmitTraceSnapshot(); | 461 picture->EmitTraceSnapshot(); |
462 processed_pictures.insert(picture); | 462 processed_pictures.insert(picture); |
463 } | 463 } |
464 } | 464 } |
465 } | 465 } |
466 | 466 |
467 } // namespace cc | 467 } // namespace cc |
OLD | NEW |