|
Maintain minimal error response.
1.FORMAT_SUPPORTED is no longer needed as we are falling back
to default RGBA_8888 format.
2.Renamed MEMORY_ALLOCATION_FAILURE to BITMAP_ALLOCATION_FAILURE
used it while returning response.
3.Remove READBACK_NOT_SUPPORTED, instead use READBACK_FAILURE.
4.This also simplifies the read back API by falling back to
returning RGBA bitmaps automatically if the format is not
supported. At the time of read back the preferred config will
be checked for read back support using isReadbackConfigSupported
and if its not supported by hardware then, RGBA_8 will be taken
as preferred format and a bitmap will be returned with that format.
The caller can always check whether they got the requested format
by checking the SkBitmap format type.
BUG= 472457
Committed: https://crrev.com/49bc3a8c0fe5faaaa64bdb1d4743601e91691b2f
Cr-Commit-Position: refs/heads/master@{#328945}
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+80 lines, -117 lines) |
Patch |
|
M |
content/browser/android/content_view_core_impl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/android/content_view_core_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/compositor/delegated_frame_host.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/compositor/delegated_frame_host.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+20 lines, -20 lines |
0 comments
|
Download
|
|
M |
content/browser/frame_host/render_widget_host_view_child_frame.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/browser/frame_host/render_widget_host_view_child_frame.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/browser/frame_host/render_widget_host_view_guest.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/frame_host/render_widget_host_view_guest.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_impl.h
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_impl.cc
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_android.h
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_aura.h
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_base.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_base.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_browsertest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_mac.h
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_mac.mm
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/public/browser/readback_types.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
content/public/browser/render_widget_host.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/test/test_render_view_host.h
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/test/test_render_view_host.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 24 (6 generated)
|