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

Unified Diff: cc/debug/fake_context_provider.h

Issue 21026005: aura: Remove CreateOffscreenContext from ui::ContextFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: offscreencontext: rebase Created 7 years, 5 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
Index: cc/debug/fake_context_provider.h
diff --git a/cc/test/fake_context_provider.h b/cc/debug/fake_context_provider.h
similarity index 72%
rename from cc/test/fake_context_provider.h
rename to cc/debug/fake_context_provider.h
index 39c59fb8adfe8c5a6a3cf860cbb5e530ca76c293..0a730a8ce8ba994d369016147fbadca3c2ff9195 100644
--- a/cc/test/fake_context_provider.h
+++ b/cc/debug/fake_context_provider.h
@@ -2,30 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_TEST_FAKE_CONTEXT_PROVIDER_H_
-#define CC_TEST_FAKE_CONTEXT_PROVIDER_H_
+#ifndef CC_DEBUG_FAKE_CONTEXT_PROVIDER_H_
+#define CC_DEBUG_FAKE_CONTEXT_PROVIDER_H_
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread_checker.h"
+#include "cc/base/cc_export.h"
#include "cc/output/context_provider.h"
+namespace WebKit { class WebGraphicsContext3D; }
+
namespace cc {
-class TestWebGraphicsContext3D;
-class FakeContextProvider : public cc::ContextProvider {
+class CC_EXPORT FakeContextProvider : public cc::ContextProvider {
public:
- typedef base::Callback<scoped_ptr<TestWebGraphicsContext3D>(void)>
+ typedef base::Callback<scoped_ptr<WebKit::WebGraphicsContext3D>(void)>
CreateCallback;
- static scoped_refptr<FakeContextProvider> Create() {
- scoped_refptr<FakeContextProvider> provider = new FakeContextProvider();
- if (!provider->InitializeOnMainThread(CreateCallback()))
- return NULL;
- return provider;
- }
-
static scoped_refptr<FakeContextProvider> Create(
const CreateCallback& create_callback) {
scoped_refptr<FakeContextProvider> provider =
@@ -60,5 +55,5 @@ class FakeContextProvider : public cc::ContextProvider {
} // namespace cc
-#endif // CC_TEST_FAKE_CONTEXT_PROVIDER_H_
+#endif // CC_DEBUG_FAKE_CONTEXT_PROVIDER_H_
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/debug/fake_context_provider.cc » ('j') | ui/compositor/compositor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698