Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: cc/playback/display_item_proto_factory.h

Issue 1494223003: cc: Shrink size of display item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make SetNew private Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 14
15 namespace proto { 15 namespace proto {
16 class DisplayItem; 16 class DisplayItem;
17 } 17 }
18 18
19 class DisplayItemProtoFactory { 19 class DisplayItemProtoFactory {
20 public: 20 public:
21 static DisplayItem* AllocateAndConstruct(const gfx::Rect& visual_rect, 21 static void AllocateAndConstruct(const gfx::Rect& visual_rect,
22 DisplayItemList* list, 22 DisplayItemList* list,
23 const proto::DisplayItem& proto); 23 const proto::DisplayItem& proto);
24 24
25 private: 25 private:
26 DisplayItemProtoFactory() {} 26 DisplayItemProtoFactory() {}
27 virtual ~DisplayItemProtoFactory() {} 27 virtual ~DisplayItemProtoFactory() {}
28 28
29 DISALLOW_COPY_AND_ASSIGN(DisplayItemProtoFactory); 29 DISALLOW_COPY_AND_ASSIGN(DisplayItemProtoFactory);
30 }; 30 };
31 31
32 } // namespace cc 32 } // namespace cc
33 33
34 #endif // CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_ 34 #endif // CC_PLAYBACK_DISPLAY_ITEM_PROTO_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698