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

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: clang-format Created 7 years, 4 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 | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 40dabe304d9e486a88f8b8bdba99e1b7304a3f64..d0a19548809accbeb967262783d60ef9a042bcdc 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 {
@@ -39,7 +40,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;
}
@@ -50,7 +52,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_;
}
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698