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

Issue 88033002: Add RGB565 Texture readback support in gl_helper (Closed)

Created:
7 years ago by sivag
Modified:
6 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add RGB565 Texture readback support in gl_helper Plan is to add a RGB565 readback and copy conversion for RGBA8 to RGB565 in GLHelper. BUG=323150 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245431

Patch Set 1 #

Total comments: 1

Patch Set 2 : WIP RGB565 texture readback gl_helper support. #

Patch Set 3 : WIP RGB565 texture readback gl_helper support. #

Patch Set 4 : Patch for RGB565 format texture readback in gl_helper #

Total comments: 7

Patch Set 5 : Modified code as per the review comments. #

Total comments: 32

Patch Set 6 : Changes done as per the review comments. #

Patch Set 7 : Corrected indentation. #

Total comments: 25

Patch Set 8 : Changes done as per review comments (WIP: gl_helper_unittests) #

Total comments: 10

Patch Set 9 : Added unittests for readback support. #

Patch Set 10 : Corrected indentation. #

Total comments: 10

Patch Set 11 : Changes done as per review comments. #

Patch Set 12 : Fix for Aura Build error. #

Patch Set 13 : Rebased to ToT! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -56 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/devtools/renderer_overrides_handler.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 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 7 chunks +24 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +9 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -1 line 0 comments Download
M content/common/gpu/client/gl_helper.h View 1 2 3 4 5 6 7 8 6 chunks +10 lines, -1 line 0 comments Download
M content/common/gpu/client/gl_helper.cc View 1 2 3 4 5 6 7 8 15 chunks +113 lines, -27 lines 0 comments Download
M content/common/gpu/client/gl_helper_benchmark.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 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 3 chunks +137 lines, -1 line 0 comments Download
M content/port/browser/render_widget_host_view_port.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/test/test_render_view_host.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/test/test_render_view_host.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 44 (0 generated)
sivag
Support RGB565 format for capturing bitmap.
7 years ago (2013-11-26 11:54:53 UTC) #1
danakj
I'm not the right reviewer for this.
7 years ago (2013-11-26 16:05:56 UTC) #2
no sievers
All the sync readback APIs are actually getting deprecated. If we want to support this, ...
7 years ago (2013-11-26 21:45:20 UTC) #3
no sievers
https://codereview.chromium.org/88033002/diff/1/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/88033002/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode326 content/browser/renderer_host/render_widget_host_view_android.cc:326: &draw_rect, Isn't the point of this to reduce the ...
7 years ago (2013-11-26 21:45:26 UTC) #4
sivag
On 2013/11/26 21:45:26, sievers wrote: > https://codereview.chromium.org/88033002/diff/1/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/88033002/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode326 > ...
7 years ago (2013-11-27 11:57:50 UTC) #5
sivag
On 2013/11/26 21:45:20, sievers wrote: > All the sync readback APIs are actually getting deprecated. ...
7 years ago (2013-11-27 12:00:38 UTC) #6
no sievers
On 2013/11/27 11:57:50, Sikugu wrote: > On 2013/11/26 21:45:26, sievers wrote: > > > https://codereview.chromium.org/88033002/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc ...
7 years ago (2013-11-27 19:31:52 UTC) #7
no sievers
On 2013/11/27 12:00:38, Sikugu wrote: > On 2013/11/26 21:45:20, sievers wrote: > > All the ...
7 years ago (2013-11-27 20:04:57 UTC) #8
sivag
On 2013/11/27 20:04:57, sievers wrote: > On 2013/11/27 12:00:38, Sikugu wrote: > > On 2013/11/26 ...
7 years ago (2013-11-28 13:28:16 UTC) #9
no sievers
On 2013/11/28 13:28:16, Sikugu wrote: > On 2013/11/27 20:04:57, sievers wrote: > > On 2013/11/27 ...
7 years ago (2013-12-02 19:01:04 UTC) #10
sivag
On 2013/12/02 19:01:04, sievers wrote: > On 2013/11/28 13:28:16, Sikugu wrote: > > On 2013/11/27 ...
7 years ago (2013-12-04 19:57:30 UTC) #11
no sievers
On 2013/12/04 19:57:30, Sikugu wrote: > On 2013/12/02 19:01:04, sievers wrote: > > On 2013/11/28 ...
7 years ago (2013-12-05 19:17:44 UTC) #12
sivag
I am starting with the 2nd task adding support in glhelper.
7 years ago (2013-12-05 20:48:25 UTC) #13
David Trainor- moved to gerrit
On 2013/12/05 20:48:25, Sikugu wrote: > I am starting with the 2nd task adding support ...
7 years ago (2013-12-13 09:52:44 UTC) #14
sivag
(After enabling Uber-Compositing path): ---------------------- I tried two approaches to accomplish this, Both approaches instead ...
7 years ago (2013-12-17 10:51:57 UTC) #15
hubbe1
If the image is replicated twice, the size of the result must be twice as ...
7 years ago (2013-12-17 19:03:59 UTC) #16
sivag
On 2013/12/17 19:03:59, hubbe1 wrote: > If the image is replicated twice, the size of ...
7 years ago (2013-12-17 19:34:01 UTC) #17
hubbe1
Have you checked that the device actually suports 565 render targets? (OpenGL ES doesn't guarantee ...
7 years ago (2013-12-17 21:13:41 UTC) #18
no sievers
Also, you have to verify that the readback is supported in that format (regardless of ...
7 years ago (2013-12-17 21:17:27 UTC) #19
sivag
On 2013/12/17 21:13:41, hubbe1 wrote: > Have you checked that the device actually suports 565 ...
7 years ago (2013-12-18 17:42:26 UTC) #20
sivag
On 2013/12/17 21:17:27, sievers wrote: > Also, you have to verify that the readback is ...
7 years ago (2013-12-18 17:44:16 UTC) #21
sivag
The patch is up and working. The problem i faced earlier was due to writing ...
7 years ago (2013-12-19 12:39:53 UTC) #22
sivag
On 2013/12/17 21:17:27, sievers wrote: > Also, you have to verify that the readback is ...
7 years ago (2013-12-23 06:47:21 UTC) #23
hubbe
https://codereview.chromium.org/88033002/diff/60001/content/common/gpu/client/gl_helper.cc File content/common/gpu/client/gl_helper.cc (right): https://codereview.chromium.org/88033002/diff/60001/content/common/gpu/client/gl_helper.cc#newcode391 content/common/gpu/client/gl_helper.cc:391: int readback_factor, readback_factor is redundant and not well named. ...
6 years, 12 months ago (2013-12-26 21:41:48 UTC) #24
sivag
The patch now takes care of 1.scaler write into a 565 texture directly 2.565 format ...
6 years, 12 months ago (2013-12-27 17:15:14 UTC) #25
sivag
On 2013/12/26 21:41:48, hubbe wrote: > https://codereview.chromium.org/88033002/diff/60001/content/common/gpu/client/gl_helper.cc > File content/common/gpu/client/gl_helper.cc (right): > > https://codereview.chromium.org/88033002/diff/60001/content/common/gpu/client/gl_helper.cc#newcode391 > ...
6 years, 11 months ago (2014-01-06 04:58:56 UTC) #26
no sievers
Can you also add a test in gl_helper_unittests.cc? https://codereview.chromium.org/88033002/diff/100001/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://codereview.chromium.org/88033002/diff/100001/content/browser/android/content_view_core_impl.h#newcode313 content/browser/android/content_view_core_impl.h:313: bool ...
6 years, 11 months ago (2014-01-07 16:26:01 UTC) #27
sivag
PTAL ...My comments below. On 2014/01/07 16:26:01, sievers wrote: > Can you also add a ...
6 years, 11 months ago (2014-01-09 14:40:27 UTC) #28
sivag
PTAL.. I am preparing this test, will add that. https://codereview.chromium.org/88033002/diff/100001/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://codereview.chromium.org/88033002/diff/100001/content/browser/android/content_view_core_impl.h#newcode313 content/browser/android/content_view_core_impl.h:313: ...
6 years, 11 months ago (2014-01-09 14:51:49 UTC) #29
no sievers
On 2014/01/09 14:51:49, Sikugu wrote: > PTAL.. > I am preparing this test, will add ...
6 years, 11 months ago (2014-01-09 14:58:52 UTC) #30
piman
Can we add a test for the 565 path? https://codereview.chromium.org/88033002/diff/310001/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/88033002/diff/310001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode618 content/browser/renderer_host/render_widget_host_view_android.cc:618: ...
6 years, 11 months ago (2014-01-09 18:12:14 UTC) #31
sivag
PTAL... The unit test needs the async readback to be tested, When i checked there ...
6 years, 11 months ago (2014-01-10 12:20:00 UTC) #32
piman
There's no guarantee that 565 readback is supported by drivers, so all callers should handle ...
6 years, 11 months ago (2014-01-10 22:38:32 UTC) #33
sivag
PTAL.... https://codereview.chromium.org/88033002/diff/310001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/88033002/diff/310001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1813 content/browser/renderer_host/render_widget_host_view_aura.cc:1813: PrepareTextureCopyOutputResult(dst_size_in_pixel, false, On 2014/01/09 18:12:15, piman wrote: > ...
6 years, 11 months ago (2014-01-15 15:24:13 UTC) #34
piman
Last few things in the test. https://codereview.chromium.org/88033002/diff/690001/content/common/gpu/client/gl_helper_unittests.cc File content/common/gpu/client/gl_helper_unittests.cc (right): https://codereview.chromium.org/88033002/diff/690001/content/common/gpu/client/gl_helper_unittests.cc#newcode848 content/common/gpu/client/gl_helper_unittests.cc:848: return std::abs(c1 - ...
6 years, 11 months ago (2014-01-15 21:32:52 UTC) #35
sivag
PTAL... https://codereview.chromium.org/88033002/diff/690001/content/common/gpu/client/gl_helper_unittests.cc File content/common/gpu/client/gl_helper_unittests.cc (right): https://codereview.chromium.org/88033002/diff/690001/content/common/gpu/client/gl_helper_unittests.cc#newcode848 content/common/gpu/client/gl_helper_unittests.cc:848: return std::abs(c1 - c2) <= 40; On 2014/01/15 ...
6 years, 11 months ago (2014-01-16 11:50:58 UTC) #36
piman
lgtm
6 years, 11 months ago (2014-01-16 19:31:59 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siva.gunturi@samsung.com/88033002/980001
6 years, 11 months ago (2014-01-17 02:13:49 UTC) #38
commit-bot: I haz the power
Failed to apply patch for content/common/gpu/client/gl_helper_unittests.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 11 months ago (2014-01-17 02:14:01 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siva.gunturi@samsung.com/88033002/1090001
6 years, 11 months ago (2014-01-17 04:28:27 UTC) #40
commit-bot: I haz the power
Change committed as 245431
6 years, 11 months ago (2014-01-17 06:16:24 UTC) #41
Mads Ager (chromium)
A revert of this CL has been created in https://codereview.chromium.org/137783022/ by ager@chromium.org. The reason for ...
6 years, 11 months ago (2014-01-17 10:00:27 UTC) #42
sivag
On 2014/01/17 10:00:27, Mads Ager (chromium) wrote: > A revert of this CL has been ...
6 years, 11 months ago (2014-01-17 11:06:11 UTC) #43
sivag
6 years, 11 months ago (2014-01-17 11:07:24 UTC) #44
Message was sent while issue was closed.
The reason why this failed is, if some hardware doesnt support rgb565 format we
are detecting it prior to running the test
here i am failing it intentionally, i should have skipped the test itself if
there is no support.

Will upload with that change in a new issue, as this is closed.
Sorry for the trouble.

Powered by Google App Engine
This is Rietveld 408576698