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

Unified Diff: content/browser/compositor/frame_sink_observer.h

Issue 2810703004: Add observers to FrameSinkManagerHost. (Closed)
Patch Set: Add OWNERS. Created 3 years, 8 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 | « content/browser/compositor/frame_sink_manager_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/frame_sink_observer.h
diff --git a/content/browser/compositor/frame_sink_observer.h b/content/browser/compositor/frame_sink_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..062b4137aa0f179e08755ad636b000198ee6c554
--- /dev/null
+++ b/content/browser/compositor/frame_sink_observer.h
@@ -0,0 +1,26 @@
+// Copyright 2017 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 CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_OBSERVER_H_
+#define CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_OBSERVER_H_
+
+namespace cc {
+class SurfaceInfo;
+}
+
+namespace content {
+
+class FrameSinkObserver {
+ public:
+ // Runs when a CompositorFrame is received for the given SurfaceInfo for the
+ // first time.
+ virtual void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) = 0;
+
+ protected:
+ ~FrameSinkObserver() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_OBSERVER_H_
« no previous file with comments | « content/browser/compositor/frame_sink_manager_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698