OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/resources/display_item_list.h" | 5 #include "cc/playback/display_item_list.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
10 #include "base/trace_event/trace_event_argument.h" | 10 #include "base/trace_event/trace_event_argument.h" |
11 #include "cc/base/math_util.h" | 11 #include "cc/base/math_util.h" |
12 #include "cc/debug/picture_debug_util.h" | 12 #include "cc/debug/picture_debug_util.h" |
13 #include "cc/debug/traced_picture.h" | 13 #include "cc/debug/traced_picture.h" |
14 #include "cc/debug/traced_value.h" | 14 #include "cc/debug/traced_value.h" |
15 #include "cc/resources/largest_display_item.h" | 15 #include "cc/playback/largest_display_item.h" |
16 #include "third_party/skia/include/core/SkCanvas.h" | 16 #include "third_party/skia/include/core/SkCanvas.h" |
17 #include "third_party/skia/include/core/SkDrawPictureCallback.h" | 17 #include "third_party/skia/include/core/SkDrawPictureCallback.h" |
18 #include "third_party/skia/include/core/SkPictureRecorder.h" | 18 #include "third_party/skia/include/core/SkPictureRecorder.h" |
19 #include "third_party/skia/include/utils/SkPictureUtils.h" | 19 #include "third_party/skia/include/utils/SkPictureUtils.h" |
20 #include "ui/gfx/skia_util.h" | 20 #include "ui/gfx/skia_util.h" |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // This should be only called once, and only after CreateAndCacheSkPicture. | 220 // This should be only called once, and only after CreateAndCacheSkPicture. |
221 DCHECK(picture_); | 221 DCHECK(picture_); |
222 DCHECK(!pixel_refs_); | 222 DCHECK(!pixel_refs_); |
223 pixel_refs_ = make_scoped_ptr(new PixelRefMap(grid_cell_size)); | 223 pixel_refs_ = make_scoped_ptr(new PixelRefMap(grid_cell_size)); |
224 if (!picture_->willPlayBackBitmaps()) | 224 if (!picture_->willPlayBackBitmaps()) |
225 return; | 225 return; |
226 | 226 |
227 pixel_refs_->GatherPixelRefsFromPicture(picture_.get()); | 227 pixel_refs_->GatherPixelRefsFromPicture(picture_.get()); |
228 } | 228 } |
229 } // namespace cc | 229 } // namespace cc |
OLD | NEW |