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

Unified Diff: content/browser/aura/browser_compositor_output_surface.h

Issue 22935009: Add content::SurfaceCapturer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_stride
Patch Set: 89e2665f Rebase. Created 7 years, 4 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/aura/browser_compositor_output_surface.h
diff --git a/content/browser/aura/browser_compositor_output_surface.h b/content/browser/aura/browser_compositor_output_surface.h
index f9ec3c8d9d5a9b2ea1a54e78a517e8b0d9f1532d..7b87f912f0d06560554f191ca0a58df363c27600 100644
--- a/content/browser/aura/browser_compositor_output_surface.h
+++ b/content/browser/aura/browser_compositor_output_surface.h
@@ -7,6 +7,7 @@
#include "base/id_map.h"
#include "base/memory/weak_ptr.h"
+#include "base/observer_list.h"
#include "base/threading/non_thread_safe.h"
#include "cc/output/output_surface.h"
@@ -16,6 +17,7 @@ namespace ui { class Compositor; }
namespace content {
class ContextProviderCommandBuffer;
+class BrowserCompositorOutputSurfaceCapturer;
class ReflectorImpl;
class WebGraphicsContext3DCommandBufferImpl;
@@ -30,7 +32,7 @@ class BrowserCompositorOutputSurface
const scoped_refptr<ContextProviderCommandBuffer>& context,
int surface_id,
IDMap<BrowserCompositorOutputSurface>* output_surface_map,
- base::MessageLoopProxy* compositor_message_loop,
+ const scoped_refptr<base::MessageLoopProxy>& compositor_message_loop,
base::WeakPtr<ui::Compositor> compositor);
virtual ~BrowserCompositorOutputSurface();
@@ -45,6 +47,9 @@ class BrowserCompositorOutputSurface
void SetReflector(ReflectorImpl* reflector);
+ void AddCapturer(BrowserCompositorOutputSurfaceCapturer* capturer);
+ void RemoveCapturer(BrowserCompositorOutputSurfaceCapturer* capturer);
+
private:
int surface_id_;
IDMap<BrowserCompositorOutputSurface>* output_surface_map_;
@@ -52,6 +57,7 @@ class BrowserCompositorOutputSurface
scoped_refptr<base::MessageLoopProxy> compositor_message_loop_;
base::WeakPtr<ui::Compositor> compositor_;
scoped_refptr<ReflectorImpl> reflector_;
+ ObserverList<BrowserCompositorOutputSurfaceCapturer> capturer_list_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698