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

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

Issue 2810703004: Add observers to FrameSinkManagerHost. (Closed)
Patch Set: Make more better. 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
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..4b66c7d8bd40f43c7719350c19b1f8a31df01e9d
--- /dev/null
+++ b/content/browser/compositor/frame_sink_observer.h
@@ -0,0 +1,22 @@
+// 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_
+
+#include "cc/surfaces/surface_info.h"
+
+namespace content {
+
+class FrameSinkObserver {
+ public:
+ virtual void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) = 0;
Fady Samuel 2017/04/28 04:58:00 nit: Comment.
kylechar 2017/05/01 19:07:48 Done.
+
+ protected:
+ ~FrameSinkObserver() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_COMPOSITOR_FRAME_SINK_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698