#ifndef CONTENT_TEST_TEST_CONTEXT_PROVIDER_FACTORY_H_
#define CONTENT_TEST_TEST_CONTEXT_PROVIDER_FACTORY_H_
#include "base/memory/ref_counted.h"
namespace cc {
class ContextProvider;
}
namespace webkit {
namespace gpu {
class ContextProviderInProcess;
}
}
namespace content {
class TestContextProviderFactory {
public:
static TestContextProviderFactory* GetInstance();
scoped_refptr<cc::ContextProvider> OffscreenContextProviderForMainThread();
private:
TestContextProviderFactory();
~TestContextProviderFactory();
scoped_refptr<webkit::gpu::ContextProviderInProcess> main_thread_;
DISALLOW_COPY_AND_ASSIGN(TestContextProviderFactory);
};
}
#endif