Mandoline: Merge Surfaces and Views apps
commitb8840eae687d6d8797d52e7228b727f1bc5167bd
authorfsamuel <fsamuel@chromium.org>
Wed, 19 Aug 2015 19:09:33 +0000 (19 12:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 19 Aug 2015 19:10:51 +0000 (19 19:10 +0000)
tree541d509c2d942eed229fba04e215b959982b1f02
parentfcba45dfac7b0f99e08883ca2270d59cb3d28974
Mandoline: Merge Surfaces and Views apps

Currently, the scroll position of the embedder can fall out
of sync with the position of an OOPIF's content on screen.

This CL moves towards resolving this issue.

See https://docs.google.com/document/d/13ElYs_X_UvZYXOltafyExRs7N3WwtQMBVc1eDLY2dTU/edit

The eventual goal is make a mojo::View a cc::Surface or at
least a SurfaceClient of some sort such that when the
compositor thread moves around some surfaces,
they also shift over the position of the views.

This CL merges surfaces, views and GL into one thread.
TopLevelDisplayClient has a DirectOutputSurface that uses
the SurfacesContextProvider as its ContextProvider. This
means it talks to the GL driver directly rather than going
through shared memory to hop to another thread first.

BUG=492389

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

Cr-Commit-Position: refs/heads/master@{#344296}
51 files changed:
components/gpu/public/interfaces/BUILD.gn
components/html_viewer/html_document.cc
components/html_viewer/html_frame.cc
components/pdf_viewer/pdf_viewer.cc
components/view_manager/BUILD.gn
components/view_manager/display_manager.cc
components/view_manager/display_manager.h
components/view_manager/display_manager_factory.h
components/view_manager/gles2/BUILD.gn
components/view_manager/gles2/command_buffer_driver.cc
components/view_manager/gles2/command_buffer_driver.h
components/view_manager/gles2/command_buffer_impl.cc
components/view_manager/gles2/command_buffer_impl.h
components/view_manager/gles2/command_buffer_local.cc [new file with mode: 0644]
components/view_manager/gles2/command_buffer_local.h [new file with mode: 0644]
components/view_manager/gles2/command_buffer_local_client.h [new file with mode: 0644]
components/view_manager/gles2/gpu_impl.cc
components/view_manager/gles2/mojo_gpu_memory_buffer.cc
components/view_manager/gles2/mojo_gpu_memory_buffer.h
components/view_manager/native_viewport/BUILD.gn [deleted file]
components/view_manager/native_viewport/DEPS [deleted file]
components/view_manager/native_viewport/onscreen_context_provider.cc [deleted file]
components/view_manager/native_viewport/onscreen_context_provider.h [deleted file]
components/view_manager/public/interfaces/BUILD.gn
components/view_manager/public/interfaces/context_provider.mojom [deleted file]
components/view_manager/public/interfaces/display.mojom [deleted file]
components/view_manager/public/interfaces/viewport_parameter_listener.mojom [deleted file]
components/view_manager/surfaces/BUILD.gn
components/view_manager/surfaces/display_delegate.h [deleted file]
components/view_manager/surfaces/display_factory_impl.h [deleted file]
components/view_manager/surfaces/main.cc [deleted file]
components/view_manager/surfaces/public/interfaces/BUILD.gn
components/view_manager/surfaces/surfaces_context_provider.cc
components/view_manager/surfaces/surfaces_context_provider.h
components/view_manager/surfaces/surfaces_context_provider_delegate.h [new file with mode: 0644]
components/view_manager/surfaces/surfaces_impl.h
components/view_manager/surfaces/surfaces_service_application.cc [deleted file]
components/view_manager/surfaces/surfaces_service_application.h [deleted file]
components/view_manager/surfaces/top_level_display_client.cc [new file with mode: 0644]
components/view_manager/surfaces/top_level_display_client.h [moved from components/view_manager/surfaces/display_impl.h with 54% similarity]
components/view_manager/view_manager_app.cc
components/view_manager/view_manager_app.h
components/view_manager/view_manager_root_impl.cc
components/view_manager/view_manager_root_impl.h
components/view_manager/view_manager_service_unittest.cc
mandoline/app/core_services_initialization.cc
mandoline/services/core_services/BUILD.gn
mandoline/services/core_services/core_services_application_delegate.cc
mandoline/tab/frame_connection.cc
mandoline/ui/aura/surface_binding.cc
mojo/runner/BUILD.gn