|
Use compositor_frame typemap in Blink
After mojo implementation change to share DataView between Blink and Chromium
(crbug.com/632061 fixed), now it is possible to use cc.mojom.CompositorFrame and
its typemap in Blink. Previously this attempt failed because of the need to
convert all struct_traits of compositor_frame's dependent types to partial
templates (that would cause code bloating) or the need to include all typemaps
of dependent types to Blink (that would violate Blink-Chromium dependency
restriction); but now neither of these is needed.
This CL does the following:
1. It makes all the struct_traits of dependent types of compositor_frame.mojom
to use shared DataView.
2. It extracts the struct_traits source files and put them as a standalone
build target, which is then referenced by their coresponding typemap as well
as the other struct_traits target that depend on them. In this way, the
struct traits source files form a build dependency graph just as same as the
mojom files. This allows Blink to include the cc struct traits (with proper
dependency beneath it) to compile the compositor_frame typemap.
3. Ultimately, the usage of compositor_frame happens in
offscreen_canvas_surface.mojom in Blink.
4. The offscreen_canvas_surface.mojom is isolated in build (see third_party/
WebKit/public/BUILD) because it includes compositor_frame.h (a super complex
data type that includes a lot of other things) that would pollute
the other Blink mojom files. This is not to interfere other existing or
future mojom files in Blink that do not want to include compositor_frame. I
put these in the comment. Since it is an isolated build target, I add it
to deps in WebKit/Source/platform/BUILD.gn and content/browser/BUILD.gn, the
only two places that use offscreen_canvas_surface.
TBR=danakj@chromium.com,sievers@chromium.org
BUG= 629566
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
Committed: https://crrev.com/8f40538bf3fb692a3c0f1352c4294b0f35b465f6
Cr-Commit-Position: refs/heads/master@{#416022}
Total comments: 4
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+293 lines, -143 lines) |
Patch |
 |
M |
cc/ipc/BUILD.gn
|
View
|
1
2
3
4
|
3 chunks |
+40 lines, -10 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/compositor_frame.typemap
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
A |
cc/ipc/compositor_frame_for_blink.typemap
|
View
|
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/compositor_frame_metadata.typemap
|
View
|
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/compositor_frame_metadata_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/compositor_frame_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/filter_operation.typemap
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/filter_operation_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/filter_operations.typemap
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/filter_operations_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/quads_struct_traits.h
|
View
|
1
2
3
4
5
|
3 chunks |
+21 lines, -21 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/quads_struct_traits.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/render_pass.typemap
|
View
|
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/render_pass_id.typemap
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/render_pass_id_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/render_pass_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/selection.typemap
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/selection_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/shared_quad_state.typemap
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/shared_quad_state_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/surface_id.typemap
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/surface_id_struct_traits.h
|
View
|
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/surface_sequence_struct_traits.h
|
View
|
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/transferable_resource.typemap
|
View
|
|
1 chunk |
+1 line, -13 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/transferable_resource_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/BUILD.gn
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/gpu_info.typemap
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/mailbox_holder.typemap
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/mailbox_holder_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/mailbox_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/sync_token.typemap
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/sync_token_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
mojo/common/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/common/common_custom_types.typemap
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
mojo/common/common_custom_types_struct_traits.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
mojo/common/common_custom_types_struct_traits.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
skia/public/interfaces/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
skia/public/interfaces/image_filter.typemap
|
View
|
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
skia/public/interfaces/image_filter_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/BUILD.gn
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/BUILD.gn
|
View
|
1
2
3
4
5
|
2 chunks |
+21 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/blink_typemaps.gni
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom
|
View
|
1
2
3
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/mojo/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/mojo/latency_info.typemap
|
View
|
|
1 chunk |
+6 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ui/events/mojo/latency_info_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/geometry/mojo/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/geometry/mojo/geometry.typemap
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/geometry/mojo/geometry_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/mojo/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/mojo/selection_bound.typemap
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/mojo/selection_bound_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/mojo/transform.typemap
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/mojo/transform_struct_traits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 54 (33 generated)
|