| 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/playback/display_item_list.h" | 5 #include "cc/paint/display_item_list.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/numerics/safe_conversions.h" | 11 #include "base/numerics/safe_conversions.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
| 14 #include "base/trace_event/trace_event_argument.h" | 14 #include "base/trace_event/trace_event_argument.h" |
| 15 #include "cc/base/math_util.h" | 15 #include "cc/base/math_util.h" |
| 16 #include "cc/debug/picture_debug_util.h" | 16 #include "cc/debug/picture_debug_util.h" |
| 17 #include "cc/playback/clip_display_item.h" | 17 #include "cc/paint/clip_display_item.h" |
| 18 #include "cc/playback/clip_path_display_item.h" | 18 #include "cc/paint/clip_path_display_item.h" |
| 19 #include "cc/playback/compositing_display_item.h" | 19 #include "cc/paint/compositing_display_item.h" |
| 20 #include "cc/playback/drawing_display_item.h" | 20 #include "cc/paint/drawing_display_item.h" |
| 21 #include "cc/playback/filter_display_item.h" | 21 #include "cc/paint/filter_display_item.h" |
| 22 #include "cc/playback/float_clip_display_item.h" | 22 #include "cc/paint/float_clip_display_item.h" |
| 23 #include "cc/playback/largest_display_item.h" | 23 #include "cc/paint/largest_display_item.h" |
| 24 #include "cc/playback/transform_display_item.h" | 24 #include "cc/paint/transform_display_item.h" |
| 25 #include "third_party/skia/include/core/SkCanvas.h" | 25 #include "third_party/skia/include/core/SkCanvas.h" |
| 26 #include "third_party/skia/include/core/SkPictureRecorder.h" | 26 #include "third_party/skia/include/core/SkPictureRecorder.h" |
| 27 #include "ui/gfx/geometry/rect.h" | 27 #include "ui/gfx/geometry/rect.h" |
| 28 #include "ui/gfx/geometry/rect_conversions.h" | 28 #include "ui/gfx/geometry/rect_conversions.h" |
| 29 #include "ui/gfx/skia_util.h" | 29 #include "ui/gfx/skia_util.h" |
| 30 | 30 |
| 31 namespace cc { | 31 namespace cc { |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 float contents_scale, | 391 float contents_scale, |
| 392 std::vector<DrawImage>* images) { | 392 std::vector<DrawImage>* images) { |
| 393 image_map_.GetDiscardableImagesInRect(rect, contents_scale, images); | 393 image_map_.GetDiscardableImagesInRect(rect, contents_scale, images); |
| 394 } | 394 } |
| 395 | 395 |
| 396 gfx::Rect DisplayItemList::GetRectForImage(ImageId image_id) const { | 396 gfx::Rect DisplayItemList::GetRectForImage(ImageId image_id) const { |
| 397 return image_map_.GetRectForImage(image_id); | 397 return image_map_.GetRectForImage(image_id); |
| 398 } | 398 } |
| 399 | 399 |
| 400 } // namespace cc | 400 } // namespace cc |
| OLD | NEW |