| 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 #ifndef CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ | 5 #ifndef CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ |
| 6 #define CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ | 6 #define CC_PLAYBACK_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" | 17 #include "cc/base/cc_export.h" |
| 18 #include "cc/base/contiguous_container.h" | 18 #include "cc/base/contiguous_container.h" |
| 19 #include "cc/base/rtree.h" | 19 #include "cc/base/rtree.h" |
| 20 #include "cc/playback/discardable_image_map.h" | 20 #include "cc/playback/discardable_image_map.h" |
| 21 #include "cc/playback/display_item.h" | 21 #include "cc/playback/display_item.h" |
| 22 #include "cc/playback/display_item_list_settings.h" | 22 #include "cc/playback/display_item_list_settings.h" |
| 23 #include "third_party/skia/include/core/SkPicture.h" | 23 #include "third_party/skia/include/core/SkPicture.h" |
| 24 #include "ui/gfx/geometry/rect.h" | 24 #include "ui/gfx/geometry/rect.h" |
| 25 #include "ui/gfx/geometry/rect_conversions.h" | 25 #include "ui/gfx/geometry/rect_conversions.h" |
| 26 | 26 |
| 27 class SkCanvas; | 27 class SkCanvas; |
| 28 class SkPictureRecorder; | |
| 29 | 28 |
| 30 namespace cc { | 29 namespace cc { |
| 31 class ClientPictureCache; | 30 class ClientPictureCache; |
| 32 class DisplayItem; | 31 class DisplayItem; |
| 33 class DrawingDisplayItem; | |
| 34 | 32 |
| 35 namespace proto { | 33 namespace proto { |
| 36 class DisplayItemList; | 34 class DisplayItemList; |
| 37 } | 35 } |
| 38 | 36 |
| 39 class CC_EXPORT DisplayItemList | 37 class CC_EXPORT DisplayItemList |
| 40 : public base::RefCountedThreadSafe<DisplayItemList> { | 38 : public base::RefCountedThreadSafe<DisplayItemList> { |
| 41 public: | 39 public: |
| 42 // Creates a display item list. | 40 // Creates a display item list. |
| 43 static scoped_refptr<DisplayItemList> Create( | 41 static scoped_refptr<DisplayItemList> Create( |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 Inputs inputs_; | 219 Inputs inputs_; |
| 222 | 220 |
| 223 friend class base::RefCountedThreadSafe<DisplayItemList>; | 221 friend class base::RefCountedThreadSafe<DisplayItemList>; |
| 224 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage); | 222 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage); |
| 225 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); | 223 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); |
| 226 }; | 224 }; |
| 227 | 225 |
| 228 } // namespace cc | 226 } // namespace cc |
| 229 | 227 |
| 230 #endif // CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ | 228 #endif // CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ |
| OLD | NEW |