| 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/trace_event/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/playback/picture_pile_impl.h" |
| 13 #include "cc/resources/raster_source_helper.h" | 13 #include "cc/playback/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 cc { | 19 namespace cc { |
| 20 | 20 |
| 21 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromPicturePile( | 21 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromPicturePile( |
| 22 const PicturePile* other, | 22 const PicturePile* other, |
| 23 bool can_use_lcd_text) { | 23 bool can_use_lcd_text) { |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 for (const auto& map_pair : picture_map_) { | 454 for (const auto& map_pair : picture_map_) { |
| 455 const Picture* picture = map_pair.second.get(); | 455 const Picture* picture = map_pair.second.get(); |
| 456 if (processed_pictures.count(picture) == 0) { | 456 if (processed_pictures.count(picture) == 0) { |
| 457 picture->EmitTraceSnapshot(); | 457 picture->EmitTraceSnapshot(); |
| 458 processed_pictures.insert(picture); | 458 processed_pictures.insert(picture); |
| 459 } | 459 } |
| 460 } | 460 } |
| 461 } | 461 } |
| 462 | 462 |
| 463 } // namespace cc | 463 } // namespace cc |
| OLD | NEW |