| Index: content/renderer/render_widget.cc
|
| diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
|
| index 074870e483d68a12cb7a51db7942deda43556382..58875568f4fccaf6661df518e1e8a486ae13871d 100644
|
| --- a/content/renderer/render_widget.cc
|
| +++ b/content/renderer/render_widget.cc
|
| @@ -572,6 +572,14 @@ bool RenderWidget::ForceCompositingModeEnabled() {
|
|
|
| scoped_ptr<cc::OutputSurface> RenderWidget::CreateOutputSurface() {
|
| const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| +
|
| +#if defined(OS_ANDROID)
|
| + if (command_line.HasSwitch(switches::kEnableSynchronousRendererCompositor)) {
|
| + return scoped_ptr<cc::OutputSurface>(
|
| + new SynchronousCompositorOutputSurface(routing_id()));
|
| + }
|
| +#endif
|
| +
|
| if (command_line.HasSwitch(switches::kEnableSoftwareCompositingGLAdapter)) {
|
| return scoped_ptr<cc::OutputSurface>(
|
| new CompositorOutputSurface(routing_id(), NULL,
|
| @@ -597,16 +605,6 @@ scoped_ptr<cc::OutputSurface> RenderWidget::CreateOutputSurface() {
|
| if (!context)
|
| return scoped_ptr<cc::OutputSurface>();
|
|
|
| -#if defined(OS_ANDROID)
|
| - if (command_line.HasSwitch(switches::kEnableSynchronousRendererCompositor)) {
|
| - // TODO(joth): Move above the |context| creation step above when the
|
| - // SynchronousCompositor no longer depends on externally created context.
|
| - return scoped_ptr<cc::OutputSurface>(
|
| - new SynchronousCompositorOutputSurface(routing_id(),
|
| - context));
|
| - }
|
| -#endif
|
| -
|
| bool composite_to_mailbox =
|
| command_line.HasSwitch(cc::switches::kCompositeToMailbox) &&
|
| !command_line.HasSwitch(switches::kEnableDelegatedRenderer);
|
|
|