Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Issue 1113573002: Maintain minimal error response. (Closed)

Created:
5 years, 7 months ago by sivag
Modified:
5 years, 7 months ago
Reviewers:
danakj, no sievers
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org, patro
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebasing TOT! #

Patch Set 4 : Remove READBACK_NOT_SUPPORTED #

Total comments: 4

Patch Set 5 : Addressed review comments. #

Total comments: 2

Patch Set 6 : Addressed review comments. #

Patch Set 7 : Fixed build issue. #

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

Messages

Total messages: 24 (6 generated)
sivag
ptal..
5 years, 7 months ago (2015-04-28 14:40:04 UTC) #2
no sievers
+Dana to see if she's ok with having AURA fall back to RGBA8 also for ...
5 years, 7 months ago (2015-04-28 17:42:11 UTC) #4
sivag
@dana, ptal..
5 years, 7 months ago (2015-04-29 05:19:08 UTC) #5
danakj
I think what this is doing is that when using software compositing, if you request ...
5 years, 7 months ago (2015-04-29 17:47:13 UTC) #6
sivag
On 2015/04/29 17:47:13, danakj wrote: > I think what this is doing is that when ...
5 years, 7 months ago (2015-04-30 10:55:11 UTC) #7
danakj
On Thu, Apr 30, 2015 at 3:55 AM, <siva.gunturi@samsung.com> wrote: > On 2015/04/29 17:47:13, danakj ...
5 years, 7 months ago (2015-04-30 17:01:02 UTC) #8
no sievers
On 2015/04/30 17:01:02, danakj wrote: > On Thu, Apr 30, 2015 at 3:55 AM, <mailto:siva.gunturi@samsung.com> ...
5 years, 7 months ago (2015-04-30 17:54:33 UTC) #9
danakj
On 2015/04/30 17:54:33, sievers wrote: > On 2015/04/30 17:01:02, danakj wrote: > > On Thu, ...
5 years, 7 months ago (2015-04-30 18:23:52 UTC) #10
sivag
@Sievers, Dana Can we go ahead with this change then?
5 years, 7 months ago (2015-05-06 16:30:12 UTC) #11
no sievers
Can we also remove PreferredReadbackFormat() everywhere then? It's always 'kN32_SkColorType'. https://codereview.chromium.org/1113573002/diff/60001/content/browser/compositor/delegated_frame_host.cc File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/1113573002/diff/60001/content/browser/compositor/delegated_frame_host.cc#newcode586 ...
5 years, 7 months ago (2015-05-06 23:08:04 UTC) #12
sivag
@sievers, ptal.. https://codereview.chromium.org/1113573002/diff/60001/content/browser/compositor/delegated_frame_host.cc File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/1113573002/diff/60001/content/browser/compositor/delegated_frame_host.cc#newcode586 content/browser/compositor/delegated_frame_host.cc:586: // GLHelper::IsReadbackConfigSupported before we processs the result. ...
5 years, 7 months ago (2015-05-07 14:14:20 UTC) #13
no sievers
lgtm. Can you update the comment that this also simplifies the readback API by falling ...
5 years, 7 months ago (2015-05-07 18:11:53 UTC) #14
no sievers
On 2015/05/07 18:11:53, sievers wrote: > lgtm. Can you update the comment that this also ...
5 years, 7 months ago (2015-05-07 18:13:05 UTC) #15
sivag
https://codereview.chromium.org/1113573002/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/1113573002/diff/80001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode437 content/browser/renderer_host/render_widget_host_view_android.cc:437: SkColorType color_type, On 2015/05/07 18:11:53, sievers wrote: > nit: ...
5 years, 7 months ago (2015-05-08 10:12:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113573002/100001
5 years, 7 months ago (2015-05-08 10:13:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113573002/120001
5 years, 7 months ago (2015-05-08 10:36:30 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-08 11:50:05 UTC) #23
commit-bot: I haz the power
5 years, 7 months ago (2015-05-08 11:50:58 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/49bc3a8c0fe5faaaa64bdb1d4743601e91691b2f
Cr-Commit-Position: refs/heads/master@{#328945}

Powered by Google App Engine
This is Rietveld 408576698