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

Issue 27973002: cc: Adding ETC1 support to UIResourceBitmap and ResourceProvider (Closed)

Created:
7 years, 2 months ago by powei
Modified:
7 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org, clholgat
Visibility:
Public.

Description

cc: Adding ETC1 support to UIResourceBitmap and ResourceProvider ETC1 compressed texture format is used by a number of UI elements. BUG=314749 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230631

Patch Set 1 #

Total comments: 24

Patch Set 2 : Addressed comments, added test, dcheck for compressed texture availability #

Total comments: 23

Patch Set 3 : addressed latest comments, rebased #

Total comments: 10

Patch Set 4 : latest comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -40 lines) Patch
M cc/debug/test_web_graphics_context_3d.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M cc/output/context_provider.h View 1 1 chunk +1 line, -0 lines 0 comments Download
cc/output/context_provider.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
cc/resources/resource.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/resource_format.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/resource_format.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 chunks +18 lines, -14 lines 0 comments Download
cc/resources/resource_provider.cc View 1 2 3 6 chunks +18 lines, -10 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 2 chunks +74 lines, -0 lines 0 comments Download
cc/resources/ui_resource_bitmap.h View 1 3 chunks +8 lines, -4 lines 0 comments Download
M cc/resources/ui_resource_bitmap.cc View 1 2 chunks +10 lines, -5 lines 0 comments Download
M cc/scheduler/texture_uploader.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
cc/scheduler/texture_uploader.cc View 1 2 3 4 chunks +27 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
powei
PTAL. Thanks.
7 years, 2 months ago (2013-10-18 01:35:54 UTC) #1
aelias_OOO_until_Jul13
Looks pretty good. Please add some tests. https://codereview.chromium.org/27973002/diff/1/cc/resources/resource.cc File cc/resources/resource.cc (right): https://codereview.chromium.org/27973002/diff/1/cc/resources/resource.cc#newcode18 cc/resources/resource.cc:18: size_t compressed_width ...
7 years, 2 months ago (2013-10-18 01:59:24 UTC) #2
aelias_OOO_until_Jul13
Also, do you need to check for GL_OES_compressed_ETC1_RGB8_texture? I haven't been able to find anywhere ...
7 years, 2 months ago (2013-10-18 03:03:29 UTC) #3
kaanb
https://codereview.chromium.org/27973002/diff/1/cc/resources/resource.cc File cc/resources/resource.cc (right): https://codereview.chromium.org/27973002/diff/1/cc/resources/resource.cc#newcode17 cc/resources/resource.cc:17: size_t block_size = 64; const size_t kBlockSize = 64; ...
7 years, 2 months ago (2013-10-18 16:54:48 UTC) #4
powei
PTAL. Thanks. GL_OES_compressed_ETC1_RGB8_texture is not officially supported by OES2. I've added dchecks accordingly. https://codereview.chromium.org/27973002/diff/1/cc/resources/resource.cc File ...
7 years, 2 months ago (2013-10-23 05:36:15 UTC) #5
aelias_OOO_until_Jul13
lgtm. Adding sievers@ for OWNERS of content/common/gpu/ https://codereview.chromium.org/27973002/diff/250001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/27973002/diff/250001/cc/resources/resource_provider.cc#newcode1374 cc/resources/resource_provider.cc:1374: gfx::Size& size ...
7 years, 2 months ago (2013-10-23 19:54:06 UTC) #6
David Trainor- moved to gerrit
lgtm pending everyone else.
7 years, 2 months ago (2013-10-23 20:09:01 UTC) #7
kaanb
lg2m with some nits and suggestions https://codereview.chromium.org/27973002/diff/250001/cc/resources/resource_provider_unittest.cc File cc/resources/resource_provider_unittest.cc (right): https://codereview.chromium.org/27973002/diff/250001/cc/resources/resource_provider_unittest.cc#newcode17 cc/resources/resource_provider_unittest.cc:17: #include "cc/resources/resource.h" do ...
7 years, 2 months ago (2013-10-23 20:30:09 UTC) #8
no sievers
https://codereview.chromium.org/27973002/diff/250001/cc/resources/resource.h File cc/resources/resource.h (right): https://codereview.chromium.org/27973002/diff/250001/cc/resources/resource.h#newcode29 cc/resources/resource.h:29: return (BitsPerPixel(format) * size.width() * size.height()) / 8; nit: ...
7 years, 2 months ago (2013-10-23 20:33:15 UTC) #9
powei
https://codereview.chromium.org/27973002/diff/250001/cc/resources/resource.h File cc/resources/resource.h (right): https://codereview.chromium.org/27973002/diff/250001/cc/resources/resource.h#newcode29 cc/resources/resource.h:29: return (BitsPerPixel(format) * size.width() * size.height()) / 8; On ...
7 years, 2 months ago (2013-10-23 22:20:06 UTC) #10
kaanb
https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.h#newcode515 cc/resources/resource_provider.h:515: DCHECK_EQ(0u, BitsPerPixel(format) % 8); wouldn't this be false for ...
7 years, 2 months ago (2013-10-23 22:25:25 UTC) #11
aelias_OOO_until_Jul13
https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.h#newcode515 cc/resources/resource_provider.h:515: DCHECK_EQ(0u, BitsPerPixel(format) % 8); On 2013/10/23 22:25:25, kaanb wrote: ...
7 years, 2 months ago (2013-10-23 22:29:12 UTC) #12
kaanb
https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.h#newcode515 cc/resources/resource_provider.h:515: DCHECK_EQ(0u, BitsPerPixel(format) % 8); On 2013/10/23 22:29:13, aelias wrote: ...
7 years, 2 months ago (2013-10-23 22:34:50 UTC) #13
no sievers
https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.cc#newcode1616 cc/resources/resource_provider.cc:1616: NULL)); I don't think glCompressedTexImage2D() supports passing NULL here ...
7 years, 2 months ago (2013-10-23 22:49:59 UTC) #14
powei
https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/27973002/diff/600001/cc/resources/resource_provider.cc#newcode1616 cc/resources/resource_provider.cc:1616: NULL)); On 2013/10/23 22:49:59, sievers wrote: > I don't ...
7 years, 2 months ago (2013-10-23 23:25:58 UTC) #15
no sievers
lgtm
7 years, 2 months ago (2013-10-24 00:13:37 UTC) #16
powei
Thanks all.
7 years, 2 months ago (2013-10-24 00:22:04 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/27973002/670001
7 years, 2 months ago (2013-10-24 00:25:19 UTC) #18
commit-bot: I haz the power
7 years, 2 months ago (2013-10-24 04:30:32 UTC) #19
Message was sent while issue was closed.
Change committed as 230631

Powered by Google App Engine
This is Rietveld 408576698