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

Issue 1174733003: cc, gpu: Use RGBA when using msaa on systems that don't support BGRA (Closed)

Created:
5 years, 6 months ago by hendrikw
Modified:
5 years, 6 months ago
Reviewers:
danakj, reveman, vmiura
CC:
cc-bugs_chromium.org, chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc, gpu: Use RGBA when using msaa on systems that don't support BGRA The pixel is compiled to prefer BGRA, but doesn't support BGRA for render buffers. When we try to use msaa, it tries to create a BGRA render buffer and fails. Fix is, plumb the setting to the gpu raster code, and prefer RGBA when using msaa on a system that doesn't support BGRA. BUG=497478 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/316921858b47cf38d65f242435782d87f6f78b93 Cr-Commit-Position: refs/heads/master@{#335395}

Patch Set 1 #

Patch Set 2 : remove test code #

Total comments: 2

Patch Set 3 : review comments #

Patch Set 4 : remove added function no longer needed #

Total comments: 1

Patch Set 5 : rename function #

Patch Set 6 : fix typo #

Patch Set 7 : virtuals for everyone #

Patch Set 8 : rename #

Total comments: 1

Patch Set 9 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -22 lines) Patch
M cc/raster/bitmap_tile_task_worker_pool.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M cc/raster/bitmap_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M cc/raster/gpu_tile_task_worker_pool.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M cc/raster/gpu_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -2 lines 0 comments Download
M cc/raster/one_copy_tile_task_worker_pool.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M cc/raster/one_copy_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M cc/raster/pixel_buffer_tile_task_worker_pool.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M cc/raster/pixel_buffer_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M cc/raster/tile_task_runner.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M cc/raster/zero_copy_tile_task_worker_pool.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M cc/raster/zero_copy_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M cc/tiles/tile_draw_info.h View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M cc/tiles/tile_draw_info.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M cc/tiles/tile_manager_perftest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/common/capabilities.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/capabilities.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/service/feature_info_unittest.cc View 1 2 3 4 5 6 6 chunks +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
hendrikw
PTAL I'm handling the case where we're on a BGRA system and we don't support ...
5 years, 6 months ago (2015-06-09 22:52:21 UTC) #2
vmiura
https://codereview.chromium.org/1174733003/diff/20001/cc/raster/gpu_tile_task_worker_pool.cc File cc/raster/gpu_tile_task_worker_pool.cc (right): https://codereview.chromium.org/1174733003/diff/20001/cc/raster/gpu_tile_task_worker_pool.cc#newcode211 cc/raster/gpu_tile_task_worker_pool.cc:211: ResourceFormat format = We call this per-tile. I think ...
5 years, 6 months ago (2015-06-09 23:05:11 UTC) #3
hendrikw
PTAL again :D
5 years, 6 months ago (2015-06-10 01:23:07 UTC) #4
hendrikw
Also removed unused function
5 years, 6 months ago (2015-06-10 01:41:42 UTC) #5
vmiura
lgtm https://codereview.chromium.org/1174733003/diff/60001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1174733003/diff/60001/cc/layers/picture_layer_impl.cc#newcode300 cc/layers/picture_layer_impl.cc:300: draw_info.contents_swizzled(); nit: It would be nice if draw_info.contents_swizzled() ...
5 years, 6 months ago (2015-06-10 01:48:25 UTC) #6
hendrikw
On 2015/06/10 01:48:25, vmiura wrote: > lgtm > > https://codereview.chromium.org/1174733003/diff/60001/cc/layers/picture_layer_impl.cc > File cc/layers/picture_layer_impl.cc (right): > ...
5 years, 6 months ago (2015-06-10 02:04:44 UTC) #7
vmiura
On 2015/06/10 02:04:44, hendrikw wrote: > On 2015/06/10 01:48:25, vmiura wrote: > > lgtm > ...
5 years, 6 months ago (2015-06-10 04:58:32 UTC) #8
hendrikw
On 2015/06/10 04:58:32, vmiura wrote: > On 2015/06/10 02:04:44, hendrikw wrote: > > On 2015/06/10 ...
5 years, 6 months ago (2015-06-10 15:28:32 UTC) #9
vmiura
On 2015/06/10 15:28:32, hendrikw wrote: > On 2015/06/10 04:58:32, vmiura wrote: > > On 2015/06/10 ...
5 years, 6 months ago (2015-06-10 15:53:57 UTC) #10
hendrikw
On 2015/06/10 15:53:57, vmiura wrote: > On 2015/06/10 15:28:32, hendrikw wrote: > > On 2015/06/10 ...
5 years, 6 months ago (2015-06-10 16:05:57 UTC) #11
vmiura
> > I think having contents_swizzeld_ in TileDrawInfo, flowing from the rasterizer > > would ...
5 years, 6 months ago (2015-06-10 17:49:22 UTC) #13
hendrikw
Added new virtual function to plumb the swizzle. PTAL. Thanks.
5 years, 6 months ago (2015-06-18 18:58:43 UTC) #14
vmiura
lgtm % comment. Thanks! https://codereview.chromium.org/1174733003/diff/140001/cc/tiles/tile_draw_info.h File cc/tiles/tile_draw_info.h (right): https://codereview.chromium.org/1174733003/diff/140001/cc/tiles/tile_draw_info.h#newcode99 cc/tiles/tile_draw_info.h:99: bool contents_swizzled_; 'contents_swizzled_' missing initialization.
5 years, 6 months ago (2015-06-18 22:30:53 UTC) #15
hendrikw
On 2015/06/18 22:30:53, vmiura wrote: > lgtm % comment. Thanks! > > https://codereview.chromium.org/1174733003/diff/140001/cc/tiles/tile_draw_info.h > File ...
5 years, 6 months ago (2015-06-18 22:35:11 UTC) #16
vmiura
On 2015/06/18 22:35:11, hendrikw wrote: > On 2015/06/18 22:30:53, vmiura wrote: > > lgtm % ...
5 years, 6 months ago (2015-06-18 22:52:50 UTC) #17
reveman
lgtm
5 years, 6 months ago (2015-06-19 21:32:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174733003/160001
5 years, 6 months ago (2015-06-19 21:36:37 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 6 months ago (2015-06-19 23:45:52 UTC) #21
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 23:46:41 UTC) #22
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/316921858b47cf38d65f242435782d87f6f78b93
Cr-Commit-Position: refs/heads/master@{#335395}

Powered by Google App Engine
This is Rietveld 408576698