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/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/numerics/safe_conversions.h" | 12 #include "base/numerics/safe_conversions.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
15 #include "base/trace_event/trace_event_argument.h" | 15 #include "base/trace_event/trace_event_argument.h" |
16 #include "cc/base/math_util.h" | 16 #include "cc/base/math_util.h" |
| 17 #include "cc/base/render_surface_filters.h" |
17 #include "cc/debug/picture_debug_util.h" | 18 #include "cc/debug/picture_debug_util.h" |
18 #include "cc/output/render_surface_filters.h" | 19 #include "cc/paint/clip_display_item.h" |
19 #include "cc/playback/clip_display_item.h" | 20 #include "cc/paint/clip_path_display_item.h" |
20 #include "cc/playback/clip_path_display_item.h" | 21 #include "cc/paint/compositing_display_item.h" |
21 #include "cc/playback/compositing_display_item.h" | 22 #include "cc/paint/drawing_display_item.h" |
22 #include "cc/playback/drawing_display_item.h" | 23 #include "cc/paint/filter_display_item.h" |
23 #include "cc/playback/filter_display_item.h" | 24 #include "cc/paint/float_clip_display_item.h" |
24 #include "cc/playback/float_clip_display_item.h" | 25 #include "cc/paint/largest_display_item.h" |
25 #include "cc/playback/largest_display_item.h" | 26 #include "cc/paint/transform_display_item.h" |
26 #include "cc/playback/transform_display_item.h" | |
27 #include "third_party/skia/include/core/SkCanvas.h" | 27 #include "third_party/skia/include/core/SkCanvas.h" |
28 #include "third_party/skia/include/core/SkImageFilter.h" | 28 #include "third_party/skia/include/core/SkImageFilter.h" |
29 #include "third_party/skia/include/core/SkPaint.h" | 29 #include "third_party/skia/include/core/SkPaint.h" |
30 #include "third_party/skia/include/core/SkPictureRecorder.h" | 30 #include "third_party/skia/include/core/SkPictureRecorder.h" |
31 #include "ui/gfx/geometry/rect.h" | 31 #include "ui/gfx/geometry/rect.h" |
32 #include "ui/gfx/geometry/rect_conversions.h" | 32 #include "ui/gfx/geometry/rect_conversions.h" |
33 #include "ui/gfx/skia_util.h" | 33 #include "ui/gfx/skia_util.h" |
34 | 34 |
35 namespace cc { | 35 namespace cc { |
36 | 36 |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 float contents_scale, | 495 float contents_scale, |
496 std::vector<DrawImage>* images) { | 496 std::vector<DrawImage>* images) { |
497 image_map_.GetDiscardableImagesInRect(rect, contents_scale, images); | 497 image_map_.GetDiscardableImagesInRect(rect, contents_scale, images); |
498 } | 498 } |
499 | 499 |
500 gfx::Rect DisplayItemList::GetRectForImage(ImageId image_id) const { | 500 gfx::Rect DisplayItemList::GetRectForImage(ImageId image_id) const { |
501 return image_map_.GetRectForImage(image_id); | 501 return image_map_.GetRectForImage(image_id); |
502 } | 502 } |
503 | 503 |
504 } // namespace cc | 504 } // namespace cc |
OLD | NEW |