Move output surface fallback from cc to embedders
commit7f8fdded6b22322a245bf643454291a0c12079c8
authorenne <enne@chromium.org>
Wed, 10 Dec 2014 21:32:09 +0000 (10 13:32 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Dec 2014 21:32:45 +0000 (10 21:32 +0000)
tree0f6e7c68d2f84a53fdcff1e93f4029a80c79d7ed
parentea4b5a8eb8f66713482ef7f4a8aca83886965440
Move output surface fallback from cc to embedders

Having this in cc means that all embedders get this logic and API, even
though only RenderWidgetCompositor and ui::Compositor use it.

This also means that cc no longer has to be robust to null
SetOutputSurface, which makes the API to embedders a bit more
clear.

Review URL: https://codereview.chromium.org/738983002

Cr-Commit-Position: refs/heads/master@{#307767}
34 files changed:
android_webview/browser/hardware_renderer.cc
android_webview/browser/hardware_renderer.h
cc/BUILD.gn
cc/cc_tests.gyp
cc/layers/tiled_layer_unittest.cc
cc/output/delegating_renderer_unittest.cc
cc/test/failure_output_surface.cc [new file with mode: 0644]
cc/test/failure_output_surface.h [new file with mode: 0644]
cc/test/fake_layer_tree_host_client.cc
cc/test/fake_layer_tree_host_client.h
cc/test/layer_tree_pixel_test.cc
cc/test/layer_tree_pixel_test.h
cc/test/layer_tree_test.cc
cc/test/layer_tree_test.h
cc/trees/layer_tree_host.cc
cc/trees/layer_tree_host.h
cc/trees/layer_tree_host_client.h
cc/trees/layer_tree_host_unittest.cc
cc/trees/layer_tree_host_unittest_context.cc
cc/trees/layer_tree_host_unittest_copyrequest.cc
cc/trees/layer_tree_host_unittest_no_message_loop.cc
cc/trees/single_thread_proxy.cc
cc/trees/thread_proxy.cc
content/browser/renderer_host/compositor_impl_android.cc
content/browser/renderer_host/compositor_impl_android.h
content/renderer/gpu/render_widget_compositor.cc
content/renderer/gpu/render_widget_compositor.h
content/renderer/gpu/render_widget_compositor_unittest.cc
content/test/web_layer_tree_view_impl_for_testing.cc
content/test/web_layer_tree_view_impl_for_testing.h
mojo/services/html_viewer/weblayertreeview_impl.cc
mojo/services/html_viewer/weblayertreeview_impl.h
ui/compositor/compositor.cc
ui/compositor/compositor.h