OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/largest_display_item.h" | 5 #include "cc/playback/largest_display_item.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "cc/resources/clip_display_item.h" | 9 #include "cc/playback/clip_display_item.h" |
10 #include "cc/resources/clip_path_display_item.h" | 10 #include "cc/playback/clip_path_display_item.h" |
11 #include "cc/resources/compositing_display_item.h" | 11 #include "cc/playback/compositing_display_item.h" |
12 #include "cc/resources/drawing_display_item.h" | 12 #include "cc/playback/drawing_display_item.h" |
13 #include "cc/resources/filter_display_item.h" | 13 #include "cc/playback/filter_display_item.h" |
14 #include "cc/resources/float_clip_display_item.h" | 14 #include "cc/playback/float_clip_display_item.h" |
15 #include "cc/resources/transform_display_item.h" | 15 #include "cc/playback/transform_display_item.h" |
16 | 16 |
17 #include "third_party/skia/include/core/SkPicture.h" | 17 #include "third_party/skia/include/core/SkPicture.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 const size_t kLargestDisplayItemSize = sizeof(cc::TransformDisplayItem); | 20 const size_t kLargestDisplayItemSize = sizeof(cc::TransformDisplayItem); |
21 } // namespace | 21 } // namespace |
22 | 22 |
23 namespace cc { | 23 namespace cc { |
24 | 24 |
25 size_t LargestDisplayItemSize() { | 25 size_t LargestDisplayItemSize() { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 "Largest Draw Quad size needs update. TransformDisplayItem" | 62 "Largest Draw Quad size needs update. TransformDisplayItem" |
63 " is currently largest."); | 63 " is currently largest."); |
64 static_assert(sizeof(EndTransformDisplayItem) <= kLargestDisplayItemSize, | 64 static_assert(sizeof(EndTransformDisplayItem) <= kLargestDisplayItemSize, |
65 "Largest Draw Quad size needs update. EndTransformDisplayItem" | 65 "Largest Draw Quad size needs update. EndTransformDisplayItem" |
66 " is currently largest."); | 66 " is currently largest."); |
67 | 67 |
68 return kLargestDisplayItemSize; | 68 return kLargestDisplayItemSize; |
69 } | 69 } |
70 | 70 |
71 } // namespace cc | 71 } // namespace cc |
OLD | NEW |