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