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

Side by Side Diff: cc/paint/display_item_list.h

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/display_item.h ('k') | cc/paint/display_item_list.cc » ('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 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 #ifndef CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ 5 #ifndef CC_PAINT_DISPLAY_ITEM_LIST_H_
6 #define CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ 6 #define CC_PAINT_DISPLAY_ITEM_LIST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/trace_event/trace_event.h" 16 #include "base/trace_event/trace_event.h"
17 #include "cc/base/cc_export.h"
18 #include "cc/base/contiguous_container.h" 17 #include "cc/base/contiguous_container.h"
19 #include "cc/base/rtree.h" 18 #include "cc/base/rtree.h"
20 #include "cc/playback/discardable_image_map.h" 19 #include "cc/paint/discardable_image_map.h"
21 #include "cc/playback/display_item.h" 20 #include "cc/paint/display_item.h"
22 #include "cc/playback/image_id.h" 21 #include "cc/paint/image_id.h"
22 #include "cc/paint/paint_export.h"
23 #include "third_party/skia/include/core/SkPicture.h" 23 #include "third_party/skia/include/core/SkPicture.h"
24 #include "ui/gfx/color_space.h" 24 #include "ui/gfx/color_space.h"
25 #include "ui/gfx/geometry/rect.h" 25 #include "ui/gfx/geometry/rect.h"
26 #include "ui/gfx/geometry/rect_conversions.h" 26 #include "ui/gfx/geometry/rect_conversions.h"
27 27
28 class SkCanvas; 28 class SkCanvas;
29 29
30 namespace base { 30 namespace base {
31 namespace trace_event { 31 namespace trace_event {
32 class TracedValue; 32 class TracedValue;
33 } 33 }
34 } 34 }
35 35
36 namespace cc { 36 namespace cc {
37 class DisplayItem; 37 class DisplayItem;
38 38
39 class CC_EXPORT DisplayItemList 39 class CC_PAINT_EXPORT DisplayItemList
40 : public base::RefCountedThreadSafe<DisplayItemList> { 40 : public base::RefCountedThreadSafe<DisplayItemList> {
41 public: 41 public:
42 DisplayItemList(); 42 DisplayItemList();
43 43
44 // TODO(trchen): Deprecated. Apply clip and scale on the canvas instead. 44 // TODO(trchen): Deprecated. Apply clip and scale on the canvas instead.
45 void Raster(SkCanvas* canvas, 45 void Raster(SkCanvas* canvas,
46 SkPicture::AbortCallback* callback, 46 SkPicture::AbortCallback* callback,
47 const gfx::Rect& canvas_target_playback_rect, 47 const gfx::Rect& canvas_target_playback_rect,
48 float contents_scale) const; 48 float contents_scale) const;
49 49
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Finalize(). 198 // Finalize().
199 bool retain_visual_rects_ = false; 199 bool retain_visual_rects_ = false;
200 200
201 friend class base::RefCountedThreadSafe<DisplayItemList>; 201 friend class base::RefCountedThreadSafe<DisplayItemList>;
202 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage); 202 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage);
203 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); 203 DISALLOW_COPY_AND_ASSIGN(DisplayItemList);
204 }; 204 };
205 205
206 } // namespace cc 206 } // namespace cc
207 207
208 #endif // CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ 208 #endif // CC_PAINT_DISPLAY_ITEM_LIST_H_
OLDNEW
« no previous file with comments | « cc/paint/display_item.h ('k') | cc/paint/display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698