OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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_SURFACES_FRAME_SINK_ID_ALLOCATOR_H_ | |
6 #define CC_SURFACES_FRAME_SINK_ID_ALLOCATOR_H_ | |
7 | |
8 #include "cc/surfaces/frame_sink_id.h" | |
9 | |
10 namespace cc { | |
11 | |
12 class FrameSinkIdAllocator { | |
Fady Samuel
2017/02/15 20:20:59
Class level comment explaining the purpose of this
xlai (Olivia)
2017/02/15 22:38:36
Done.
| |
13 public: | |
14 FrameSinkId NextFrameSinkId() { return FrameSinkId(0, next_sink_id_++); } | |
boliu
2017/02/15 19:59:20
should have a comment here why the first part must
danakj
2017/02/15 20:18:10
It seems very action-at-a-distance to decide 0 her
Fady Samuel
2017/02/15 20:20:59
Actually I'd prefer that the client_id be a param
xlai (Olivia)
2017/02/15 22:38:36
Done.
| |
15 | |
16 private: | |
17 uint32_t next_sink_id_ = 1u; | |
boliu
2017/02/15 19:59:20
DISALLOW_COPY_AND_ASSIGN?
xlai (Olivia)
2017/02/15 22:38:36
Done.
| |
18 }; | |
19 | |
20 } // namespace cc | |
21 | |
22 #endif // CC_SURFACES_FRAME_SINK_ID_ALLOCATOR_H_ | |
OLD | NEW |