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

Unified 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, 3 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_sequence_generator.h
diff --git a/cc/trees/surface_sequence_generator.h b/cc/surfaces/surface_sequence_generator.h
similarity index 65%
rename from cc/trees/surface_sequence_generator.h
rename to cc/surfaces/surface_sequence_generator.h
index 10b880ad5fb84d3ac2143b1e54a60abe1aa8446f..24ae2020e05c412ed4396169b2136bab6b77a1a0 100644
--- a/cc/trees/surface_sequence_generator.h
+++ b/cc/surfaces/surface_sequence_generator.h
@@ -2,14 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_TREES_SURFACE_SEQUENCE_GENERATOR_H_
-#define CC_TREES_SURFACE_SEQUENCE_GENERATOR_H_
+#ifndef CC_SURFACES_SURFACE_SEQUENCE_GENERATOR_H_
+#define CC_SURFACES_SURFACE_SEQUENCE_GENERATOR_H_
#include <stdint.h>
+#include <tuple>
+
#include "base/macros.h"
#include "cc/base/cc_export.h"
+#include "cc/surfaces/frame_sink_id.h"
+
namespace cc {
struct SurfaceSequence;
@@ -19,14 +23,14 @@ class CC_EXPORT SurfaceSequenceGenerator {
SurfaceSequenceGenerator();
~SurfaceSequenceGenerator();
- void set_surface_client_id(uint32_t client_id) {
- surface_client_id_ = client_id;
+ void set_frame_sink_id(const FrameSinkId& frame_sink_id) {
+ frame_sink_id_ = frame_sink_id;
}
SurfaceSequence CreateSurfaceSequence();
private:
- uint32_t surface_client_id_;
+ FrameSinkId frame_sink_id_;
uint32_t next_surface_sequence_;
DISALLOW_COPY_AND_ASSIGN(SurfaceSequenceGenerator);
@@ -34,4 +38,4 @@ class CC_EXPORT SurfaceSequenceGenerator {
} // namespace cc
-#endif // CC_TREES_SURFACE_SEQUENCE_GENERATOR_H_
+#endif // CC_SURFACES_SURFACE_SEQUENCE_GENERATOR_H_
« 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