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

Issue 2213273002: ozone: Consolidate primary plane format. (Closed)

Created:
4 years, 4 months ago by Daniele Castagna
Modified:
4 years, 4 months ago
CC:
blundell+watchlist_chromium.org, chromium-reviews, droger+watchlist_chromium.org, erikchen, kalyank, ozone-reviews_chromium.org, piman+watch_chromium.org, sdefresne+watchlist_chromium.org, Zhenyao Mo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: Consolidate primary plane format. Prior to this change the BufferFormat used by the primary plane was defined in multiple places. This CL consolidates the buffer format in DisplayMode::PrimaryFormat. In addition RGB/BGR formats have been added where needed so that it is now possible to switch the primary plane format from BGR to RGB changing only the return value of DisplayMode::PrimaryFormat. BUG=b/29430506 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/0a50f6440e5b2283ed1df4deaebb51cfa6bbe54f Cr-Commit-Position: refs/heads/master@{#411126}

Patch Set 1 #

Patch Set 2 : Don't change the format of primary planes (leave it as BGRX). #

Patch Set 3 : DCHECK(GL_RGBA, internal_format_); #

Total comments: 4

Patch Set 4 : Address dnicoara's comments. #

Patch Set 5 : Don't add BGRX_8888 to Mac, pass RGB instead of RGBA to Mac output surface and BufferQueue tests. #

Total comments: 2

Patch Set 6 : Pass BufferFormat to BufferQueue constructor. #

Patch Set 7 : Move format to GpuProcessTransportFactory::EstablishedGpuChannel. #

Total comments: 2

Patch Set 8 : Mac back to GL_RGBA. #

Total comments: 2

Patch Set 9 : Comment on a single line. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -28 lines) Patch
M cc/test/test_web_graphics_context_3d.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/display_compositor/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M components/display_compositor/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/display_compositor/buffer_queue.h View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M components/display_compositor/buffer_queue.cc View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M components/display_compositor/buffer_queue_unittest.cc View 1 2 3 4 5 7 chunks +11 lines, -8 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/compositor/gpu_output_surface_mac.mm View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M services/ui/surfaces/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/surfaces/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/surfaces/direct_output_surface_ozone.cc View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M ui/display/types/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/types/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/types/display_snapshot.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M ui/display/types/display_snapshot.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/ozone/demo/surfaceless_gl_renderer.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/hardware_display_plane.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/screen_manager.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 83 (64 generated)
Daniele Castagna
4 years, 4 months ago (2016-08-04 22:40:17 UTC) #5
dnicoara
+ oshima@ for ui/display + spang@ for rest of ui/ozone https://codereview.chromium.org/2213273002/diff/40001/ui/display/types/DEPS File ui/display/types/DEPS (left): https://codereview.chromium.org/2213273002/diff/40001/ui/display/types/DEPS#oldcode4 ...
4 years, 4 months ago (2016-08-05 13:59:45 UTC) #17
Ken Russell (switch to Gerrit)
Just to confirm -- have you seen the assertion failures this CL is provoking in ...
4 years, 4 months ago (2016-08-05 18:24:02 UTC) #19
Ken Russell (switch to Gerrit)
Example failure: https://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_tests_rel/builds/2500
4 years, 4 months ago (2016-08-05 18:24:53 UTC) #20
Daniele Castagna
On 2016/08/05 at 18:24:53, kbr wrote: > Example failure: > https://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_tests_rel/builds/2500 Noticed that, looking into ...
4 years, 4 months ago (2016-08-05 19:18:50 UTC) #21
Daniele Castagna
Actually adding ccameron. https://codereview.chromium.org/2213273002/diff/40001/ui/display/types/DEPS File ui/display/types/DEPS (left): https://codereview.chromium.org/2213273002/diff/40001/ui/display/types/DEPS#oldcode4 ui/display/types/DEPS:4: "+ui/gfx/geometry", On 2016/08/05 at 13:59:44, dnicoara ...
4 years, 4 months ago (2016-08-06 04:48:07 UTC) #40
ccameron
https://codereview.chromium.org/2213273002/diff/140001/components/display_compositor/buffer_queue.cc File components/display_compositor/buffer_queue.cc (right): https://codereview.chromium.org/2213273002/diff/140001/components/display_compositor/buffer_queue.cc#newcode215 components/display_compositor/buffer_queue.cc:215: I'd rather that the gfx::BufferFormat be passed in as ...
4 years, 4 months ago (2016-08-08 19:29:10 UTC) #41
Daniele Castagna
https://codereview.chromium.org/2213273002/diff/140001/components/display_compositor/buffer_queue.cc File components/display_compositor/buffer_queue.cc (right): https://codereview.chromium.org/2213273002/diff/140001/components/display_compositor/buffer_queue.cc#newcode215 components/display_compositor/buffer_queue.cc:215: On 2016/08/08 at 19:29:10, ccameron wrote: > I'd rather ...
4 years, 4 months ago (2016-08-09 00:34:30 UTC) #56
ccameron
On 2016/08/09 00:34:30, Daniele Castagna wrote: > https://codereview.chromium.org/2213273002/diff/140001/components/display_compositor/buffer_queue.cc > File components/display_compositor/buffer_queue.cc (right): > > https://codereview.chromium.org/2213273002/diff/140001/components/display_compositor/buffer_queue.cc#newcode215 ...
4 years, 4 months ago (2016-08-09 06:49:01 UTC) #57
Daniele Castagna
On 2016/08/09 at 06:49:01, ccameron wrote: > On 2016/08/09 00:34:30, Daniele Castagna wrote: > > ...
4 years, 4 months ago (2016-08-09 16:29:33 UTC) #60
ccameron
lgtm, though I'd suggest leaving the Mac path as GL_RGBA/BGRA_8888, since that's more predictable than ...
4 years, 4 months ago (2016-08-09 17:11:04 UTC) #63
Daniele Castagna
+avi for content/browser/BUILD.gn +rjkroege for services/ui/surfaces/* and ui/ozone/* https://codereview.chromium.org/2213273002/diff/220001/content/browser/compositor/gpu_output_surface_mac.mm File content/browser/compositor/gpu_output_surface_mac.mm (right): https://codereview.chromium.org/2213273002/diff/220001/content/browser/compositor/gpu_output_surface_mac.mm#newcode64 content/browser/compositor/gpu_output_surface_mac.mm:64: GL_TEXTURE_RECTANGLE_ARB, ...
4 years, 4 months ago (2016-08-09 22:25:31 UTC) #67
Avi (use Gerrit)
lgtm stampity stamp
4 years, 4 months ago (2016-08-09 22:57:47 UTC) #68
oshima
ui/display lgtm with a nit https://codereview.chromium.org/2213273002/diff/240001/ui/display/types/display_snapshot.h File ui/display/types/display_snapshot.h (right): https://codereview.chromium.org/2213273002/diff/240001/ui/display/types/display_snapshot.h#newcode82 ui/display/types/display_snapshot.h:82: // plane buffer. nit: ...
4 years, 4 months ago (2016-08-10 06:29:41 UTC) #71
Daniele Castagna
https://codereview.chromium.org/2213273002/diff/240001/ui/display/types/display_snapshot.h File ui/display/types/display_snapshot.h (right): https://codereview.chromium.org/2213273002/diff/240001/ui/display/types/display_snapshot.h#newcode82 ui/display/types/display_snapshot.h:82: // plane buffer. On 2016/08/10 at 06:29:41, oshima wrote: ...
4 years, 4 months ago (2016-08-10 16:42:20 UTC) #72
rjkroege
ozone + surfaces lgtm
4 years, 4 months ago (2016-08-10 19:01:00 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2213273002/260001
4 years, 4 months ago (2016-08-10 20:06:04 UTC) #80
commit-bot: I haz the power
Committed patchset #9 (id:260001)
4 years, 4 months ago (2016-08-10 20:12:39 UTC) #81
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 20:14:11 UTC) #83
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0a50f6440e5b2283ed1df4deaebb51cfa6bbe54f
Cr-Commit-Position: refs/heads/master@{#411126}

Powered by Google App Engine
This is Rietveld 408576698