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

Issue 149123008: Implement GLHelperReadbackSupport for GLHelper usage. (Closed)

Created:
6 years, 10 months ago by sivag
Modified:
6 years, 9 months ago
CC:
chromium-reviews, jbauman+watch_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, penghuang+watch_chromium.org, sievers+watch_chromium.org, joi+watch-content_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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

We need a function which can tell us whether the requested texture readback is supported or not. As of now ARGB888 is taken as the default format, this will pass until the browser surface config is ARGB8888, in low end mode we switch to 16 bit format surface if supported, then we may need this function. Implement IsReadBackConfigSupported using map and clean up accordingly. Bug=323150 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254981

Patch Set 1 #

Patch Set 2 : Implement IsReadBackConfigSupported using map and clean up accordingly #

Patch Set 3 : Move all format checking logic to IsReadBackConfigSupported and use this #

Patch Set 4 : Remove unwanted DCHECK. #

Patch Set 5 : Rebasing TOT. #

Patch Set 6 : Remove unnecessary space. #

Total comments: 26

Patch Set 7 : Code changed as per review comments. #

Patch Set 8 : Formatted cl using git format option. #

Total comments: 22

Patch Set 9 : Code changed as per review comments. #

Patch Set 10 : Fixed Build error for gl_helper_unit_test. #

Patch Set 11 : Fix for win_gpu_test problem. #

Patch Set 12 : Avoid using SupportsFormat in between gl operations. #

Total comments: 2

Patch Set 13 : Code changed as per review comments. #

Total comments: 4

Patch Set 14 : Created a new class, Handled review comments. #

Total comments: 11

Patch Set 15 : Code changed as per review comments. #

Patch Set 16 : Remove unused gl_helper member. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -109 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 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 11 12 13 14 4 chunks +12 lines, -17 lines 0 comments Download
M content/common/gpu/client/gl_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +6 lines, -5 lines 0 comments Download
M content/common/gpu/client/gl_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 chunks +44 lines, -81 lines 0 comments Download
A content/common/gpu/client/gl_helper_readback_support.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +51 lines, -0 lines 0 comments Download
A content/common/gpu/client/gl_helper_readback_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +93 lines, -0 lines 0 comments Download
M content/common/gpu/client/gl_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -6 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
sivag
PTAL...
6 years, 10 months ago (2014-02-17 10:00:55 UTC) #1
no sievers
https://codereview.chromium.org/149123008/diff/170001/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/149123008/diff/170001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1396 content/browser/renderer_host/render_widget_host_view_android.cc:1396: callback.Run(false, SkBitmap()); You don't need to change all of ...
6 years, 10 months ago (2014-02-18 19:35:44 UTC) #2
piman
https://codereview.chromium.org/149123008/diff/170001/content/common/gpu/client/gl_helper.cc File content/common/gpu/client/gl_helper.cc (right): https://codereview.chromium.org/149123008/diff/170001/content/common/gpu/client/gl_helper.cc#newcode581 content/common/gpu/client/gl_helper.cc:581: if(!helper_){ nit: spaces Try git cl format. https://codereview.chromium.org/149123008/diff/170001/content/common/gpu/client/gl_helper.h File ...
6 years, 10 months ago (2014-02-18 22:23:15 UTC) #3
sivag
PTAL.. https://codereview.chromium.org/149123008/diff/170001/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/149123008/diff/170001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1396 content/browser/renderer_host/render_widget_host_view_android.cc:1396: callback.Run(false, SkBitmap()); On 2014/02/18 19:35:44, sievers wrote: > ...
6 years, 10 months ago (2014-02-19 15:49:03 UTC) #4
no sievers
lgtm with nits https://codereview.chromium.org/149123008/diff/170001/content/common/gpu/client/gl_helper.cc File content/common/gpu/client/gl_helper.cc (right): https://codereview.chromium.org/149123008/diff/170001/content/common/gpu/client/gl_helper.cc#newcode542 content/common/gpu/client/gl_helper.cc:542: if (!IsReadBackConfigSupported(bitmap_config)) On 2014/02/19 15:49:04, Sikugu ...
6 years, 10 months ago (2014-02-19 19:09:38 UTC) #5
piman
LGTM+nits https://codereview.chromium.org/149123008/diff/320001/content/common/gpu/client/gl_helper.cc File content/common/gpu/client/gl_helper.cc (right): https://codereview.chromium.org/149123008/diff/320001/content/common/gpu/client/gl_helper.cc#newcode348 content/common/gpu/client/gl_helper.cc:348: nit: no blank line https://codereview.chromium.org/149123008/diff/320001/content/common/gpu/client/gl_helper.cc#newcode399 content/common/gpu/client/gl_helper.cc:399: nit: no ...
6 years, 10 months ago (2014-02-20 00:32:17 UTC) #6
vivekg
https://codereview.chromium.org/149123008/diff/320001/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/149123008/diff/320001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1469 content/browser/renderer_host/render_widget_host_view_android.cc:1469: const SkBitmap::Config& bitmap_config) { nit: As SkBitmap::Config is an ...
6 years, 10 months ago (2014-02-20 00:53:31 UTC) #7
sivag
Done. https://codereview.chromium.org/149123008/diff/170001/content/common/gpu/client/gl_helper.cc File content/common/gpu/client/gl_helper.cc (right): https://codereview.chromium.org/149123008/diff/170001/content/common/gpu/client/gl_helper.cc#newcode542 content/common/gpu/client/gl_helper.cc:542: if (!IsReadBackConfigSupported(bitmap_config)) On 2014/02/19 19:09:38, sievers wrote: > ...
6 years, 10 months ago (2014-02-21 11:40:50 UTC) #8
sivag
Hi gpu try bots were failing when i tried testing my patch Please take a ...
6 years, 10 months ago (2014-02-21 11:41:42 UTC) #9
no sievers
On 2014/02/21 11:41:42, Sikugu wrote: > Hi gpu try bots were failing when i tried ...
6 years, 10 months ago (2014-02-21 17:28:04 UTC) #10
Ken Russell (switch to Gerrit)
This looks like a legitimate failure caused by your patch. You should run this test ...
6 years, 10 months ago (2014-02-21 21:58:28 UTC) #11
sivag
Hi Sievers,Ken I tested this with linux build.The issue is observed after patching my CL. ...
6 years, 10 months ago (2014-02-25 09:32:56 UTC) #12
sivag
On 2014/02/21 17:28:04, sievers wrote: > On 2014/02/21 11:41:42, Sikugu wrote: > > Hi gpu ...
6 years, 10 months ago (2014-02-26 01:03:37 UTC) #13
sivag
On 2014/02/21 17:28:04, sievers wrote: > On 2014/02/21 11:41:42, Sikugu wrote: > > Hi gpu ...
6 years, 10 months ago (2014-02-26 17:47:24 UTC) #14
no sievers
Sorry for the delay. Just wondering what state got broken from doing the test lazily. ...
6 years, 10 months ago (2014-02-26 20:05:43 UTC) #15
sivag
The ReadbackPlane function got called in the ReadbackYUV while running the GLHelperTest.YUVReadbackOptTest unit_tests. I kept ...
6 years, 9 months ago (2014-02-27 15:33:17 UTC) #16
no sievers
On 2014/02/27 15:33:17, Sikugu wrote: > The ReadbackPlane function got called in the ReadbackYUV while ...
6 years, 9 months ago (2014-02-27 20:27:32 UTC) #17
no sievers
https://codereview.chromium.org/149123008/diff/650001/content/common/gpu/client/gl_helper.cc File content/common/gpu/client/gl_helper.cc (right): https://codereview.chromium.org/149123008/diff/650001/content/common/gpu/client/gl_helper.cc#newcode889 content/common/gpu/client/gl_helper.cc:889: format_support_table_[i] = FORMAT_NOT_SUPPORTED; You can init it to NOT_SUPPORTED ...
6 years, 9 months ago (2014-02-27 20:42:49 UTC) #18
hubbe1
On Thu, Feb 27, 2014 at 12:27 PM, <sievers@chromium.org> wrote: > On 2014/02/27 15:33:17, Sikugu ...
6 years, 9 months ago (2014-02-27 20:44:38 UTC) #19
hubbe1
I think the original author was concerned that queriying the previous binding would be slow, ...
6 years, 9 months ago (2014-02-27 20:51:47 UTC) #20
no sievers
On 2014/02/27 20:27:32, sievers wrote: > On 2014/02/27 15:33:17, Sikugu wrote: > > The ReadbackPlane ...
6 years, 9 months ago (2014-02-27 20:52:22 UTC) #21
Daniel Sievers (Google)
On Thu, Feb 27, 2014 at 12:51 PM, Fredrik Hubinette <hubbe@google.com>wrote: > I think the ...
6 years, 9 months ago (2014-02-27 20:53:45 UTC) #22
sivag
Hi Sievers, Code corrected as per the suggestions, along with this as there is more ...
6 years, 9 months ago (2014-02-28 10:04:40 UTC) #23
sivag
+Jam For content/content_common.gypi changes. ptal..
6 years, 9 months ago (2014-02-28 11:34:01 UTC) #24
jam
On 2014/02/28 11:34:01, Sikugu wrote: > +Jam > For content/content_common.gypi changes. > > ptal.. lgtm. ...
6 years, 9 months ago (2014-02-28 17:03:30 UTC) #25
no sievers
lgtm with nits https://codereview.chromium.org/149123008/diff/670001/content/browser/renderer_host/render_widget_host_view_android.h File content/browser/renderer_host/render_widget_host_view_android.h (right): https://codereview.chromium.org/149123008/diff/670001/content/browser/renderer_host/render_widget_host_view_android.h#newcode249 content/browser/renderer_host/render_widget_host_view_android.h:249: bool IsReadbackConfigSupported(SkBitmap::Config bitmap_config); private https://codereview.chromium.org/149123008/diff/670001/content/common/gpu/client/gl_helper.h File ...
6 years, 9 months ago (2014-02-28 19:25:52 UTC) #26
sivag
https://codereview.chromium.org/149123008/diff/670001/content/browser/renderer_host/render_widget_host_view_android.h File content/browser/renderer_host/render_widget_host_view_android.h (right): https://codereview.chromium.org/149123008/diff/670001/content/browser/renderer_host/render_widget_host_view_android.h#newcode249 content/browser/renderer_host/render_widget_host_view_android.h:249: bool IsReadbackConfigSupported(SkBitmap::Config bitmap_config); On 2014/02/28 19:25:53, sievers wrote: > ...
6 years, 9 months ago (2014-03-04 09:46:44 UTC) #27
sivag
The CQ bit was checked by siva.gunturi@samsung.com
6 years, 9 months ago (2014-03-04 09:47:09 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siva.gunturi@samsung.com/149123008/710001
6 years, 9 months ago (2014-03-04 09:47:40 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 19:21:22 UTC) #30
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 9 months ago (2014-03-04 19:21:22 UTC) #31
sivag
The CQ bit was checked by siva.gunturi@samsung.com
6 years, 9 months ago (2014-03-05 07:49:13 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siva.gunturi@samsung.com/149123008/710001
6 years, 9 months ago (2014-03-05 07:50:48 UTC) #33
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 09:43:24 UTC) #34
Message was sent while issue was closed.
Change committed as 254981

Powered by Google App Engine
This is Rietveld 408576698