Compositor bindings for mojo html_viewer
commit2abb46fdc18d2110b443a9e570ea393e3b0a42c5
authorjamesr <jamesr@chromium.org>
Fri, 12 Sep 2014 05:49:13 +0000 (11 22:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Sep 2014 05:51:10 +0000 (12 05:51 +0000)
treee53147118cc91471f189c516751b23a08507f099
parent8176b73b02e137a3c06afb7382a0a277338cc5ea
Compositor bindings for mojo html_viewer

This binds mojo's html_viewer to a compositor implementation that uses surfaces
to present. It reuses the bindings for the WebLayer* types in cc/blink and adds
a new implementation of blink::WebLayerTreeView that shares some things with
content/renderer/gpu/render_widget_compositor.cc but is distinct enough to be
its own class. Whenever the compositor resizes (and thus needs a new surface id)
it passes the surface id to the view manager client lib.

This also adds mojo bindings for a few new quad types that are used on the web.
We don't yet have support for video quad types, but we don't have the media
system hooked up to html_viewer yet either so these will not be generated.

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

Cr-Commit-Position: refs/heads/master@{#294546}
17 files changed:
mojo/cc/output_surface_mojo.cc
mojo/cc/output_surface_mojo.h
mojo/mojo_services.gypi
mojo/services/html_viewer/DEPS
mojo/services/html_viewer/blink_platform_impl.cc
mojo/services/html_viewer/blink_platform_impl.h
mojo/services/html_viewer/html_document_view.cc
mojo/services/html_viewer/html_document_view.h
mojo/services/html_viewer/html_viewer.cc
mojo/services/html_viewer/weblayertreeview_impl.cc [new file with mode: 0644]
mojo/services/html_viewer/weblayertreeview_impl.h [new file with mode: 0644]
mojo/services/public/cpp/geometry/geometry_type_converters.h
mojo/services/public/cpp/geometry/lib/geometry_type_converters.cc
mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc
mojo/services/public/cpp/surfaces/surfaces_type_converters.h
mojo/services/public/interfaces/geometry/geometry.mojom
mojo/services/public/interfaces/surfaces/quads.mojom