Chromium Code Reviews| Index: cc/playback/display_item_proto_factory.h |
| diff --git a/cc/playback/display_item_proto_factory.h b/cc/playback/display_item_proto_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..43325df927c606f5c1d438a6bfb787b0ea505c30 |
| --- /dev/null |
| +++ b/cc/playback/display_item_proto_factory.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_ |
| +#define CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_ |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "cc/playback/display_item.h" |
| +#include "cc/playback/display_item_list.h" |
| + |
| +namespace cc { |
| + |
| +namespace proto { |
| +class DisplayItem; |
| +} |
| + |
| +class DisplayItemProtoFactory { |
|
vmpstr
2015/10/26 17:46:17
I wonder if it's possible to make this patch more
|
| + public: |
| + static DisplayItem* AllocateAndConstruct(scoped_refptr<DisplayItemList> list, |
| + const proto::DisplayItem& proto); |
| + |
| + private: |
| + DisplayItemProtoFactory() {} |
| + virtual ~DisplayItemProtoFactory() {} |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DisplayItemProtoFactory); |
| +}; |
| + |
| +} // namespace cc |
| + |
| +#endif // CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_ |