|
cc: Move TextureMailbox::ReleaseCallback to SingleReleaseCallback.
This moves the release callback out of the TextureMailbox so that we
can use it for other resource types than just texture mailboxes.
While doing this, we make a SingleReleaseCallback class that is
held in a scoped_ptr. This class DCHECKs that the callback is run
before it is destroyed, and ensures clear ownership semantics as
you must Pass() the callback around.
No change in behaviour, covered by existing tests.
R=piman
BUG= 263069
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223500
Total comments: 2
Total comments: 7
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+603 lines, -371 lines) |
Patch |
 |
M |
cc/cc.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
9 chunks |
+32 lines, -16 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_client.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
44 chunks |
+123 lines, -71 lines |
0 comments
|
Download
|
 |
M |
cc/layers/video_layer_impl.h
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/video_layer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/output/copy_output_request.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/output/copy_output_request.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/output/copy_output_result.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+13 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/output/copy_output_result.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+17 lines, -9 lines |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
A |
cc/resources/release_callback.h
|
View
|
1
2
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/resources/resource_provider.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/resource_provider.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/resources/resource_provider_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
10 chunks |
+37 lines, -29 lines |
0 comments
|
Download
|
 |
A |
cc/resources/single_release_callback.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cc/resources/single_release_callback.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/resources/texture_mailbox.h
|
View
|
|
2 chunks |
+3 lines, -18 lines |
0 comments
|
Download
|
 |
M |
cc/resources/texture_mailbox.cc
|
View
|
|
3 chunks |
+16 lines, -51 lines |
0 comments
|
Download
|
 |
M |
cc/resources/texture_mailbox_deleter.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/resources/texture_mailbox_deleter.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+18 lines, -15 lines |
0 comments
|
Download
|
 |
M |
cc/resources/texture_mailbox_deleter_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/resources/video_resource_updater.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/video_resource_updater.cc
|
View
|
|
3 chunks |
+10 lines, -15 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_pixel_test.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_pixel_test.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+17 lines, -9 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_pixeltest_readback.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
9 chunks |
+41 lines, -28 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin_compositing_helper.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_graphics_2d_host.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_graphics_2d_host.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_instance_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/pepper_plugin_instance_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/layer.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/layer.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
webkit/renderer/compositor_bindings/web_external_texture_layer_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+16 lines, -12 lines |
0 comments
|
Download
|
Total messages: 26 (0 generated)
|