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

Unified Diff: content/browser/renderer_host/image_transport_factory.cc

Issue 12212100: Provide shared context to Platform API in renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseforreals Created 7 years, 10 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: content/browser/renderer_host/image_transport_factory.cc
diff --git a/content/browser/renderer_host/image_transport_factory.cc b/content/browser/renderer_host/image_transport_factory.cc
index c6a4123d221d93705bb28b70c1cdad880f10409e..e37ea28433836bb2acf8f625fbb23bb29a6d30d5 100644
--- a/content/browser/renderer_host/image_transport_factory.cc
+++ b/content/browser/renderer_host/image_transport_factory.cc
@@ -677,13 +677,10 @@ void ImageTransportFactory::Initialize() {
if (command_line->HasSwitch(switches::kTestCompositor)) {
ui::SetupTestCompositor();
}
- if (ui::IsTestCompositorEnabled()) {
+ if (ui::IsTestCompositorEnabled())
g_factory = new DefaultTransportFactory();
- WebKitPlatformSupportImpl::SetOffscreenContextFactoryForTest(
- CreateTestContext);
- } else {
+ else
g_factory = new GpuProcessTransportFactory();
- }
ui::ContextFactory::SetInstance(g_factory->AsContextFactory());
}
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/common/gpu/client/context_provider_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698