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

Unified Diff: cc/resources/resource_provider_unittest.cc

Issue 1985973002: Defer compositor context creation to the thread. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contextfactory: . Created 4 years, 7 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/resources/resource_provider_unittest.cc
diff --git a/cc/resources/resource_provider_unittest.cc b/cc/resources/resource_provider_unittest.cc
index 578eeb066813ad2a5a56888a5aed56f6fecb7544..1788e56f9970f2fe5400e75abd59dbf2cefc1af7 100644
--- a/cc/resources/resource_provider_unittest.cc
+++ b/cc/resources/resource_provider_unittest.cc
@@ -427,10 +427,9 @@ class ResourceProviderTest
ResourceProviderContext::Create(shared_data_.get()));
context3d_ = context3d.get();
- scoped_refptr<TestContextProvider> context_provider =
- TestContextProvider::Create(std::move(context3d));
-
- output_surface_ = FakeOutputSurface::Create3d(context_provider);
+ output_surface_ = FakeOutputSurface::Create3d(
+ base::MakeUnique<TestContextProvider::Factory>(
+ std::move(context3d)));
std::unique_ptr<ResourceProviderContext> child_context_owned =
ResourceProviderContext::Create(shared_data_.get());

Powered by Google App Engine
This is Rietveld 408576698