#ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
#define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
namespace base {
class MessageLoopProxy;
}
namespace cc {
class ContextProvider;
class OutputSurface;
}
namespace webkit {
namespace gpu {
class ContextProviderWebContext;
}
}
namespace content {
class InputHandlerManagerClient;
class StreamTextureFactory;
class SynchronousCompositorFactory {
public:
static void SetInstance(SynchronousCompositorFactory* instance);
static SynchronousCompositorFactory* GetInstance();
virtual scoped_refptr<base::MessageLoopProxy>
GetCompositorMessageLoop() = 0;
virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
int routing_id) = 0;
virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0;
virtual scoped_refptr<webkit::gpu::ContextProviderWebContext>
GetOffscreenContextProviderForMainThread() = 0;
virtual scoped_refptr<cc::ContextProvider>
GetOffscreenContextProviderForCompositorThread() = 0;
virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
int view_id) = 0;
protected:
SynchronousCompositorFactory() {}
virtual ~SynchronousCompositorFactory() {}
};
}
#endif