forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay_item_proto_factory.h
37 lines (28 loc) · 963 Bytes
/
display_item_proto_factory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// 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 {
class ImageSerializationProcessor;
namespace proto {
class DisplayItem;
}
class DisplayItemProtoFactory {
public:
static void AllocateAndConstruct(
const gfx::Rect& visual_rect,
DisplayItemList* list,
const proto::DisplayItem& proto,
ImageSerializationProcessor* image_serialization_processor);
private:
DisplayItemProtoFactory() {}
virtual ~DisplayItemProtoFactory() {}
DISALLOW_COPY_AND_ASSIGN(DisplayItemProtoFactory);
};
} // namespace cc
#endif // CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_