| Index: webkit/gpu/test_context_provider_factory.cc
|
| diff --git a/webkit/gpu/test_context_provider_factory.cc b/webkit/gpu/test_context_provider_factory.cc
|
| deleted file mode 100644
|
| index a8ac73bec144c3a57ba8cc976e53fdbb721d8620..0000000000000000000000000000000000000000
|
| --- a/webkit/gpu/test_context_provider_factory.cc
|
| +++ /dev/null
|
| @@ -1,46 +0,0 @@
|
| -// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "webkit/gpu/test_context_provider_factory.h"
|
| -
|
| -#include "base/logging.h"
|
| -#include "cc/output/context_provider.h"
|
| -#include "webkit/gpu/context_provider_in_process.h"
|
| -
|
| -namespace webkit {
|
| -namespace gpu {
|
| -
|
| -static TestContextProviderFactory* context_provider_instance = NULL;
|
| -
|
| -// static
|
| -TestContextProviderFactory* TestContextProviderFactory::GetInstance() {
|
| - if (!context_provider_instance)
|
| - context_provider_instance = new TestContextProviderFactory();
|
| - return context_provider_instance;
|
| -}
|
| -
|
| -TestContextProviderFactory::TestContextProviderFactory() {}
|
| -
|
| -TestContextProviderFactory::~TestContextProviderFactory() {}
|
| -
|
| -scoped_refptr<cc::ContextProvider> TestContextProviderFactory::
|
| - OffscreenContextProviderForMainThread() {
|
| - if (!main_thread_ || main_thread_->DestroyedOnMainThread()) {
|
| - main_thread_ = ContextProviderInProcess::Create();
|
| - if (main_thread_ && !main_thread_->BindToCurrentThread())
|
| - main_thread_ = NULL;
|
| - }
|
| - return main_thread_;
|
| -}
|
| -
|
| -scoped_refptr<cc::ContextProvider> TestContextProviderFactory::
|
| - OffscreenContextProviderForCompositorThread() {
|
| - if (!compositor_thread_ ||
|
| - compositor_thread_->DestroyedOnMainThread())
|
| - compositor_thread_ = ContextProviderInProcess::Create();
|
| - return compositor_thread_;
|
| -}
|
| -
|
| -} // namespace gpu
|
| -} // namespace webkit
|
|
|