| 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_RESOURCES_DISPLAY_ITEM_LIST_H_ | 5 #ifndef CC_RESOURCES_DISPLAY_ITEM_LIST_H_ |
| 6 #define CC_RESOURCES_DISPLAY_ITEM_LIST_H_ | 6 #define CC_RESOURCES_DISPLAY_ITEM_LIST_H_ |
| 7 | 7 |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
| 12 #include "cc/base/scoped_ptr_vector.h" | 12 #include "cc/base/scoped_ptr_vector.h" |
| 13 #include "cc/resources/display_item.h" | 13 #include "cc/resources/display_item.h" |
| 14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 15 | 15 |
| 16 class SkCanvas; | 16 class SkCanvas; |
| 17 class SkDrawPictureCallback; | 17 class SkDrawPictureCallback; |
| 18 | 18 |
| 19 namespace cc { | 19 namespace cc { |
| 20 | 20 |
| 21 class CC_EXPORT DisplayItemList | 21 class CC_EXPORT DisplayItemList |
| 22 : public base::RefCountedThreadSafe<DisplayItemList> { | 22 : public base::RefCountedThreadSafe<DisplayItemList> { |
| 23 public: | 23 public: |
| 24 static scoped_refptr<DisplayItemList> Create(); | 24 static scoped_refptr<DisplayItemList> Create(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 44 bool is_suitable_for_gpu_rasterization_; | 44 bool is_suitable_for_gpu_rasterization_; |
| 45 int approximate_op_count_; | 45 int approximate_op_count_; |
| 46 | 46 |
| 47 friend class base::RefCountedThreadSafe<DisplayItemList>; | 47 friend class base::RefCountedThreadSafe<DisplayItemList>; |
| 48 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); | 48 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace cc | 51 } // namespace cc |
| 52 | 52 |
| 53 #endif // CC_RESOURCES_DISPLAY_ITEM_LIST_H_ | 53 #endif // CC_RESOURCES_DISPLAY_ITEM_LIST_H_ |
| OLD | NEW |