1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_TEST_TEST_CONTEXT_PROVIDER_FACTORY_H_
6 #define CONTENT_TEST_TEST_CONTEXT_PROVIDER_FACTORY_H_
8 #include "base/memory/ref_counted.h"
11 class ContextProvider;
16 class ContextProviderInProcess;
22 class TestContextProviderFactory {
24 // The returned pointer is static and should not be deleted by the caller.
25 static TestContextProviderFactory* GetInstance();
27 scoped_refptr<cc::ContextProvider> OffscreenContextProviderForMainThread();
30 TestContextProviderFactory();
31 ~TestContextProviderFactory();
33 scoped_refptr<webkit::gpu::ContextProviderInProcess> main_thread_;
35 DISALLOW_COPY_AND_ASSIGN(TestContextProviderFactory);
38 } // namespace content
40 #endif // CONTENT_TEST_TEST_CONTEXT_PROVIDER_FACTORY_H_