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

Unified Diff: cc/test/fake_layer_tree_host_client.cc

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/test/fake_layer_tree_host_client.cc
diff --git a/cc/test/fake_layer_tree_host_client.cc b/cc/test/fake_layer_tree_host_client.cc
index 0413b08718762f52b5a5218838e1b3801223b757..a7a95e66905a7b5a747e1cb005373014f8633f17 100644
--- a/cc/test/fake_layer_tree_host_client.cc
+++ b/cc/test/fake_layer_tree_host_client.cc
@@ -5,6 +5,7 @@
#include "cc/test/fake_layer_tree_host_client.h"
#include "cc/output/context_provider.h"
+#include "cc/test/fake_output_surface.h"
#include "cc/test/test_web_graphics_context_3d.h"
namespace cc {
@@ -38,7 +39,8 @@ scoped_refptr<cc::ContextProvider> FakeLayerTreeHostClient::
OffscreenContextProviderForMainThread() {
if (!main_thread_contexts_.get() ||
main_thread_contexts_->DestroyedOnMainThread()) {
- main_thread_contexts_ = FakeContextProvider::Create();
+ main_thread_contexts_ = FakeContextProvider::Create(
+ TestWebGraphicsContext3D::CreateBaseFactory());
if (!main_thread_contexts_->BindToCurrentThread())
main_thread_contexts_ = NULL;
}
@@ -49,7 +51,8 @@ scoped_refptr<cc::ContextProvider> FakeLayerTreeHostClient::
OffscreenContextProviderForCompositorThread() {
if (!compositor_thread_contexts_.get() ||
compositor_thread_contexts_->DestroyedOnMainThread())
- compositor_thread_contexts_ = FakeContextProvider::Create();
+ compositor_thread_contexts_ = FakeContextProvider::Create(
+ TestWebGraphicsContext3D::CreateBaseFactory());
return compositor_thread_contexts_;
}

Powered by Google App Engine
This is Rietveld 408576698