Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: content/test/test_context_provider_factory.cc

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/test_context_provider_factory.h ('k') | content/test/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_context_provider_factory.cc
diff --git a/content/test/test_context_provider_factory.cc b/content/test/test_context_provider_factory.cc
deleted file mode 100644
index 33ba614b1a3c7f6ac4f24545a4470d0e6a587ed2..0000000000000000000000000000000000000000
--- a/content/test/test_context_provider_factory.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2014 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 "content/test/test_context_provider_factory.h"
-
-#include "base/logging.h"
-#include "cc/output/context_provider.h"
-#include "webkit/common/gpu/context_provider_in_process.h"
-
-namespace content {
-
-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_.get() || main_thread_->DestroyedOnMainThread()) {
- bool lose_context_when_out_of_memory = false;
- main_thread_ = webkit::gpu::ContextProviderInProcess::CreateOffscreen(
- lose_context_when_out_of_memory);
- if (main_thread_.get() && !main_thread_->BindToCurrentThread())
- main_thread_ = NULL;
- }
- return main_thread_;
-}
-
-} // namespace content
« no previous file with comments | « content/test/test_context_provider_factory.h ('k') | content/test/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698