Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: cc/paint/largest_display_item.cc

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/paint/largest_display_item.h ('k') | cc/paint/transform_display_item.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/playback/largest_display_item.h" 5 #include "cc/paint/largest_display_item.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "cc/playback/clip_display_item.h" 11 #include "cc/paint/clip_display_item.h"
12 #include "cc/playback/clip_path_display_item.h" 12 #include "cc/paint/clip_path_display_item.h"
13 #include "cc/playback/compositing_display_item.h" 13 #include "cc/paint/compositing_display_item.h"
14 #include "cc/playback/drawing_display_item.h" 14 #include "cc/paint/drawing_display_item.h"
15 #include "cc/playback/filter_display_item.h" 15 #include "cc/paint/filter_display_item.h"
16 #include "cc/playback/float_clip_display_item.h" 16 #include "cc/paint/float_clip_display_item.h"
17 #include "cc/playback/transform_display_item.h" 17 #include "cc/paint/transform_display_item.h"
18 18
19 #include "third_party/skia/include/core/SkPicture.h" 19 #include "third_party/skia/include/core/SkPicture.h"
20 20
21 namespace { 21 namespace {
22 // Either FilterDisplayItem or TransformDisplayItem is largest. It depends on 22 // Either FilterDisplayItem or TransformDisplayItem is largest. It depends on
23 // the platform. 23 // the platform.
24 constexpr size_t kLargestDisplayItemSize = 24 constexpr size_t kLargestDisplayItemSize =
25 sizeof(cc::FilterDisplayItem) > sizeof(cc::TransformDisplayItem) 25 sizeof(cc::FilterDisplayItem) > sizeof(cc::TransformDisplayItem)
26 ? sizeof(cc::FilterDisplayItem) 26 ? sizeof(cc::FilterDisplayItem)
27 : sizeof(cc::TransformDisplayItem); 27 : sizeof(cc::TransformDisplayItem);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 "Largest Draw Quad size needs update. TransformDisplayItem" 69 "Largest Draw Quad size needs update. TransformDisplayItem"
70 " is currently largest."); 70 " is currently largest.");
71 static_assert(sizeof(EndTransformDisplayItem) <= kLargestDisplayItemSize, 71 static_assert(sizeof(EndTransformDisplayItem) <= kLargestDisplayItemSize,
72 "Largest Draw Quad size needs update. EndTransformDisplayItem" 72 "Largest Draw Quad size needs update. EndTransformDisplayItem"
73 " is currently largest."); 73 " is currently largest.");
74 74
75 return kLargestDisplayItemSize; 75 return kLargestDisplayItemSize;
76 } 76 }
77 77
78 } // namespace cc 78 } // namespace cc
OLDNEW
« no previous file with comments | « cc/paint/largest_display_item.h ('k') | cc/paint/transform_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698