|
cc: Add CopyAsBitmapRequest class to hold the readback callback.
Currently when you request an async copy of a layer as a bitmap, we
pass around the raw base::Callback. In order to add functionality to
the copy/readback mechanism, we need to pass along other parameters
such as a size to scale the copy to. Instead of passing along an
ever-growing list of parameters, wrap the base::Callback in a class
called CopyAsBitmapRequest. Then new parameters can be added to this
class.
No change in behaviour here, covered by existing tests.
R=piman
BUG= 242571
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201990
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+294 lines, -138 lines) |
Patch |
 |
M |
cc/base/scoped_ptr_vector.h
|
View
|
1
2
3
|
2 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
A |
cc/base/scoped_ptr_vector_unittest.cc
|
View
|
1
2
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/cc.gyp
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/cc_tests.gyp
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer.h
|
View
|
1
|
5 chunks |
+9 lines, -12 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer.cc
|
View
|
1
|
5 chunks |
+27 lines, -24 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer_impl.h
|
View
|
1
|
3 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer_impl.cc
|
View
|
1
|
4 chunks |
+10 lines, -18 lines |
0 comments
|
Download
|
 |
A |
cc/output/copy_output_request.h
|
View
|
1
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cc/output/copy_output_request.cc
|
View
|
1
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/output/direct_renderer.h
|
View
|
1
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
cc/output/direct_renderer.cc
|
View
|
1
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer.h
|
View
|
1
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer.cc
|
View
|
1
|
9 chunks |
+21 lines, -23 lines |
0 comments
|
Download
|
 |
M |
cc/output/software_renderer.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/output/software_renderer.cc
|
View
|
1
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/quads/render_pass.h
|
View
|
1
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/quads/render_pass.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/quads/render_pass_unittest.cc
|
View
|
1
2
|
4 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_pixel_test.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_common.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
1
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest.cc
|
View
|
1
|
4 chunks |
+21 lines, -18 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|