|
|
Chromium Code Reviews|
Created:
6 years ago by sivag Modified:
4 years, 4 months ago CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, miu+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionUse GLHelper support to validate format before processing texture.
IsReadbackConfig can be used to query whether
readback of particular format texture is supported.
BUG=415682
Patch Set 1 #Patch Set 2 : #
Total comments: 4
Patch Set 3 : Use single glhelper call. #
Total comments: 4
Patch Set 4 : Reset the scope_callback_runner when format is not supported. #Patch Set 5 : Remove ALPHA_8 format support check. #Patch Set 6 : Add alpha_format for readback. #Patch Set 7 : Rebasing TOT! #Patch Set 8 : Rebasing TOT. #Patch Set 9 : #Patch Set 10 : #Patch Set 11 : #
Messages
Total messages: 50 (23 generated)
siva.gunturi@samsung.com changed reviewers: + ccameron@chromium.org, danakj@chromium.org
siva.gunturi@samsung.com changed reviewers: + piman@chromium.org
ptal..
danakj@chromium.org changed reviewers: + sievers@chromium.org
siva.gunturi@samsung.com changed reviewers: - ccameron@chromium.org
@piman, dana ptal..
https://codereview.chromium.org/807853003/diff/20001/content/browser/composit... File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/807853003/diff/20001/content/browser/composit... content/browser/compositor/delegated_frame_host.cc:614: //// static just one // is enough https://codereview.chromium.org/807853003/diff/20001/content/browser/composit... content/browser/compositor/delegated_frame_host.cc:633: if (!IsReadbackConfigSupported(color_type)) This makes us GetGLHelper() twice, IWBN to only call that function once. Also previously if GetGLHelper() gave null, we would READBACK_FAILED. Now we READBACK_FORMAT_NOT_SUPPORTED, which maybe is not right?
LGTM after Dana's comments are addressed.
@dana, ptal.. https://codereview.chromium.org/807853003/diff/20001/content/browser/composit... File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/807853003/diff/20001/content/browser/composit... content/browser/compositor/delegated_frame_host.cc:614: //// static On 2015/01/06 16:16:19, danakj wrote: > just one // is enough Done. https://codereview.chromium.org/807853003/diff/20001/content/browser/composit... content/browser/compositor/delegated_frame_host.cc:633: if (!IsReadbackConfigSupported(color_type)) On 2015/01/06 16:16:19, danakj wrote: > This makes us GetGLHelper() twice, IWBN to only call that function once. > > Also previously if GetGLHelper() gave null, we would READBACK_FAILED. Now we > READBACK_FORMAT_NOT_SUPPORTED, which maybe is not right? Done.
Thanks. One more comment https://codereview.chromium.org/807853003/diff/40001/content/browser/composit... File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/807853003/diff/40001/content/browser/composit... content/browser/compositor/delegated_frame_host.cc:620: DCHECK(result->HasTexture()); Nit: blank line between dcheck and code https://codereview.chromium.org/807853003/diff/40001/content/browser/composit... content/browser/compositor/delegated_frame_host.cc:632: base::ScopedClosureRunner scoped_callback_runner( Maybe move this to the top of the function, and just reset the scoped runner when calling with format error?
dana, ptal.. https://codereview.chromium.org/807853003/diff/40001/content/browser/composit... File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/807853003/diff/40001/content/browser/composit... content/browser/compositor/delegated_frame_host.cc:620: DCHECK(result->HasTexture()); On 2015/01/08 05:56:31, danakj wrote: > Nit: blank line between dcheck and code Done. https://codereview.chromium.org/807853003/diff/40001/content/browser/composit... content/browser/compositor/delegated_frame_host.cc:632: base::ScopedClosureRunner scoped_callback_runner( On 2015/01/08 05:56:31, danakj wrote: > Maybe move this to the top of the function, and just reset the scoped runner > when calling with format error? Done.
lgtm
The CQ bit was checked by siva.gunturi@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by siva.gunturi@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by siva.gunturi@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by siva.gunturi@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by siva.gunturi@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/60001
The CQ bit was checked by siva.gunturi@samsung.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/807853003/120001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by siva.gunturi@samsung.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/807853003/120001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_r...) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by siva.gunturi@samsung.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/807853003/140001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by siva.gunturi@samsung.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/807853003/180001
The CQ bit was unchecked by siva.gunturi@samsung.com
The CQ bit was checked by siva.gunturi@samsung.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807853003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/807853003/200001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
