| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_ | |
| 6 #define CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "cc/playback/display_item.h" | |
| 11 #include "cc/playback/display_item_list.h" | |
| 12 | |
| 13 namespace cc { | |
| 14 class ClientPictureCache; | |
| 15 | |
| 16 namespace proto { | |
| 17 class DisplayItem; | |
| 18 } | |
| 19 | |
| 20 class DisplayItemProtoFactory { | |
| 21 public: | |
| 22 static void AllocateAndConstruct( | |
| 23 const gfx::Rect& visual_rect, | |
| 24 DisplayItemList* list, | |
| 25 const proto::DisplayItem& proto, | |
| 26 ClientPictureCache* client_picture_cache, | |
| 27 std::vector<uint32_t>* used_engine_picture_ids); | |
| 28 | |
| 29 private: | |
| 30 DisplayItemProtoFactory() {} | |
| 31 virtual ~DisplayItemProtoFactory() {} | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(DisplayItemProtoFactory); | |
| 34 }; | |
| 35 | |
| 36 } // namespace cc | |
| 37 | |
| 38 #endif // CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_ | |
| OLD | NEW |