|
Add gpu::MailboxHolder to hold state for a gpu::Mailbox
gpu::Mailbox by itself can hold only a texture id, but in common usage it comes
with texture target and syncpoint information for cross-context sharing. To
reduce repetition of this pattern, gpu::MailboxHolder holds:
* a gpu::Mailbox
* a GL texture target
* a syncpoint index
Refactor other classes to use a gpu::MailboxHolder instead of separate
gpu::Mailbox and associated state.
Syncpoints are created with uint32 indices; make sure all uses of syncpoints
use the appropriate type.
BUG=None
TEST=local build, unittests on CrOS snow, desktop Linux
TBR=piman@chromium.org, enn@chromium.orge, cevans@chromium.org, scherkus@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248612
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+593 lines, -564 lines) |
Patch |
 |
M |
cc/DEPS
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/delegated_frame_provider_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer.h
|
View
|
|
4 chunks |
+15 lines, -14 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer.cc
|
View
|
|
5 chunks |
+27 lines, -23 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_unittest.cc
|
View
|
1
2
3
|
14 chunks |
+54 lines, -36 lines |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/release_callback.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
cc/resources/resource_provider.cc
|
View
|
1
2
3
|
8 chunks |
+32 lines, -27 lines |
0 comments
|
Download
|
 |
M |
cc/resources/resource_provider_unittest.cc
|
View
|
1
2
3
|
40 chunks |
+111 lines, -91 lines |
0 comments
|
Download
|
 |
M |
cc/resources/single_release_callback.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/single_release_callback.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/texture_mailbox.h
|
View
|
1
2
3
|
2 chunks |
+13 lines, -25 lines |
0 comments
|
Download
|
 |
M |
cc/resources/texture_mailbox.cc
|
View
|
1
2
3
|
1 chunk |
+16 lines, -58 lines |
0 comments
|
Download
|
 |
M |
cc/resources/texture_mailbox_deleter.h
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/resources/texture_mailbox_deleter.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/transferable_resource.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/resources/transferable_resource.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
cc/resources/video_resource_updater.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/video_resource_updater.cc
|
View
|
1
2
3
|
5 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_delegated_renderer_layer_impl.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_pixel_test.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_perftest.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_context.cc
|
View
|
1
2
3
|
2 chunks |
+19 lines, -25 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_copyrequest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_delegated.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/owned_mailbox.h
|
View
|
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/owned_mailbox.cc
|
View
|
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/desktop_capture_device_aura.cc
|
View
|
1
2
3
|
1 chunk |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
3
|
4 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/software_frame_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/common/cc_messages.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
content/common/cc_messages_unittest.cc
|
View
|
|
2 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gl_helper.h
|
View
|
1
2
3
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/gl_helper.cc
|
View
|
1
2
3
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/child_frame_compositing_helper.cc
|
View
|
1
2
3
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/android/webmediaplayer_android.h
|
View
|
1
2
3
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/android/webmediaplayer_android.cc
|
View
|
1
2
3
|
4 chunks |
+14 lines, -18 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/rtc_video_decoder.h
|
View
|
1
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/rtc_video_decoder.cc
|
View
|
1
|
5 chunks |
+11 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/webmediaplayer_impl.cc
|
View
|
1
2
3
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_graphics_2d_host.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_instance_impl.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
A |
gpu/command_buffer/common/mailbox_holder.h
|
View
|
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
A |
gpu/command_buffer/common/mailbox_holder.cc
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer_common.gypi
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/gpu_command_buffer_traits.h
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/gpu_command_buffer_traits.cc
|
View
|
|
2 chunks |
+21 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/base/video_frame.h
|
View
|
1
|
6 chunks |
+20 lines, -43 lines |
0 comments
|
Download
|
 |
M |
media/base/video_frame.cc
|
View
|
1
|
6 chunks |
+12 lines, -28 lines |
0 comments
|
Download
|
 |
M |
media/base/video_frame_unittest.cc
|
View
|
1
|
4 chunks |
+27 lines, -33 lines |
0 comments
|
Download
|
 |
M |
media/filters/gpu_video_decoder.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/gpu_video_decoder.cc
|
View
|
1
|
5 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
 |
M |
webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
|
View
|
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|