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

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

Issue 22935009: Add content::SurfaceCapturer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_stride
Patch Set: cff149b4 WIP 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/gpu_process_transport_factory.h
diff --git a/content/browser/aura/gpu_process_transport_factory.h b/content/browser/aura/gpu_process_transport_factory.h
index 56d3e55498ab08809ab8d00c058e22a8ac775222..a57e9c033475e37ea87b3a1fd35d6b080325bcab 100644
--- a/content/browser/aura/gpu_process_transport_factory.h
+++ b/content/browser/aura/gpu_process_transport_factory.h
@@ -24,9 +24,9 @@ class ReflectorImpl;
class WebGraphicsContext3DCommandBufferImpl;
class WebGraphicsContext3DSwapBuffersClient;
-class GpuProcessTransportFactory
- : public ui::ContextFactory,
- public ImageTransportFactory {
+class GpuProcessTransportFactory : public ui::ContextFactory,
+ public SurfaceCapturingContextFactory,
+ public ImageTransportFactory {
public:
GpuProcessTransportFactory();
@@ -50,8 +50,15 @@ class GpuProcessTransportFactory
OffscreenContextProviderForCompositorThread() OVERRIDE;
virtual bool DoesCreateTestContexts() OVERRIDE;
+ // SurfaceCapturingContextFactory implementation.
+ virtual scoped_ptr<SurfaceCapturer> CreateOutputSurfaceCapturer(
+ ui::Compositor* compositor,
+ SurfaceCapturer::Client* client) OVERRIDE;
+
// ImageTransportFactory implementation.
virtual ui::ContextFactory* AsContextFactory() OVERRIDE;
+ virtual SurfaceCapturingContextFactory* AsSurfaceCapturingContextFactory()
+ OVERRIDE;
virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() OVERRIDE;
virtual void DestroySharedSurfaceHandle(
gfx::GLSurfaceHandle surface) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698