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

Side by Side Diff: cc/surfaces/surface_sequence_generator.h

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 2 months 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
« no previous file with comments | « cc/surfaces/surface_sequence.h ('k') | cc/surfaces/surface_sequence_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TREES_SURFACE_SEQUENCE_GENERATOR_H_ 5 #ifndef CC_SURFACES_SURFACE_SEQUENCE_GENERATOR_H_
6 #define CC_TREES_SURFACE_SEQUENCE_GENERATOR_H_ 6 #define CC_SURFACES_SURFACE_SEQUENCE_GENERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <tuple>
11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "cc/base/cc_export.h" 13 #include "cc/base/cc_export.h"
12 14
15 #include "cc/surfaces/frame_sink_id.h"
16
13 namespace cc { 17 namespace cc {
14 struct SurfaceSequence; 18 struct SurfaceSequence;
15 19
16 // Generates unique surface sequences for a surface client id. 20 // Generates unique surface sequences for a surface client id.
17 class CC_EXPORT SurfaceSequenceGenerator { 21 class CC_EXPORT SurfaceSequenceGenerator {
18 public: 22 public:
19 SurfaceSequenceGenerator(); 23 SurfaceSequenceGenerator();
20 ~SurfaceSequenceGenerator(); 24 ~SurfaceSequenceGenerator();
21 25
22 void set_surface_client_id(uint32_t client_id) { 26 void set_frame_sink_id(const FrameSinkId& frame_sink_id) {
23 surface_client_id_ = client_id; 27 frame_sink_id_ = frame_sink_id;
24 } 28 }
25 29
26 SurfaceSequence CreateSurfaceSequence(); 30 SurfaceSequence CreateSurfaceSequence();
27 31
28 private: 32 private:
29 uint32_t surface_client_id_; 33 FrameSinkId frame_sink_id_;
30 uint32_t next_surface_sequence_; 34 uint32_t next_surface_sequence_;
31 35
32 DISALLOW_COPY_AND_ASSIGN(SurfaceSequenceGenerator); 36 DISALLOW_COPY_AND_ASSIGN(SurfaceSequenceGenerator);
33 }; 37 };
34 38
35 } // namespace cc 39 } // namespace cc
36 40
37 #endif // CC_TREES_SURFACE_SEQUENCE_GENERATOR_H_ 41 #endif // CC_SURFACES_SURFACE_SEQUENCE_GENERATOR_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_sequence.h ('k') | cc/surfaces/surface_sequence_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698