| 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 | 7 |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "cc/base/region.h" | 9 #include "cc/base/region.h" |
| 10 #include "cc/debug/debug_colors.h" | 10 #include "cc/debug/debug_colors.h" |
| 11 #include "cc/resources/picture_pile_impl.h" | 11 #include "cc/resources/picture_pile_impl.h" |
| 12 #include "skia/ext/analysis_canvas.h" | 12 #include "skia/ext/analysis_canvas.h" |
| 13 #include "third_party/skia/include/core/SkCanvas.h" | 13 #include "third_party/skia/include/core/SkCanvas.h" |
| 14 #include "third_party/skia/include/core/SkPictureRecorder.h" | 14 #include "third_party/skia/include/core/SkPictureRecorder.h" |
| 15 #include "third_party/skia/include/core/SkSize.h" | 15 #include "ui/gfx/geometry/rect_conversions.h" |
| 16 #include "ui/gfx/rect_conversions.h" | |
| 17 #include "ui/gfx/size_conversions.h" | |
| 18 #include "ui/gfx/skia_util.h" | |
| 19 | 16 |
| 20 namespace cc { | 17 namespace cc { |
| 21 | 18 |
| 22 scoped_refptr<PicturePileImpl> PicturePileImpl::Create() { | 19 scoped_refptr<PicturePileImpl> PicturePileImpl::Create() { |
| 23 return make_scoped_refptr(new PicturePileImpl); | 20 return make_scoped_refptr(new PicturePileImpl); |
| 24 } | 21 } |
| 25 | 22 |
| 26 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromOther( | 23 scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromOther( |
| 27 const PicturePileBase* other) { | 24 const PicturePileBase* other) { |
| 28 return make_scoped_refptr(new PicturePileImpl(other)); | 25 return make_scoped_refptr(new PicturePileImpl(other)); |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 ++it) { | 415 ++it) { |
| 419 const Picture* picture = it->second.GetPicture(); | 416 const Picture* picture = it->second.GetPicture(); |
| 420 if (picture && (processed_pictures.count(picture) == 0)) { | 417 if (picture && (processed_pictures.count(picture) == 0)) { |
| 421 picture->EmitTraceSnapshot(); | 418 picture->EmitTraceSnapshot(); |
| 422 processed_pictures.insert(picture); | 419 processed_pictures.insert(picture); |
| 423 } | 420 } |
| 424 } | 421 } |
| 425 } | 422 } |
| 426 | 423 |
| 427 } // namespace cc | 424 } // namespace cc |
| OLD | NEW |