Cast: Skip receiver log messages with time delta that can't be encoded.
[chromium-blink-merge.git] / content / test / test_context_provider_factory.h
bloba6ad85b5b9c35dce4ef26c29339dffa4e63d8971
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"
10 namespace cc {
11 class ContextProvider;
14 namespace webkit {
15 namespace gpu {
16 class ContextProviderInProcess;
20 namespace content {
22 class TestContextProviderFactory {
23 public:
24 // The returned pointer is static and should not be deleted by the caller.
25 static TestContextProviderFactory* GetInstance();
27 scoped_refptr<cc::ContextProvider> OffscreenContextProviderForMainThread();
29 private:
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_