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

Issue 1583283004: Ensure alpha channel in backbuffer is correct with DirectComposition. (Closed)

Created:
4 years, 11 months ago by jbauman
Modified:
4 years, 11 months ago
CC:
chromium-reviews, piman+watch_chromium.org, ozone-reviews_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure alpha channel in backbuffer is correct with DirectComposition. gles2_conform_test runs with the command buffer emulating an RGB backbuffer on top of RGBA. The backbuffer was initially being cleared correctly to 1.0 alpha, but after the first swap a buffer with alpha 0.0 was returned, which caused the test to fail. Instead in this case after the swap the command buffer should set a flag that the backbuffer needs to be cleared before the next draw; the backbuffer clearing code can handle setting alpha to 1.0. Resize also needs to force a clear, but swaps afterwards will return a backbuffer that's been used before and has been cleared correctly. BUG=524838 Committed: https://crrev.com/2634dd83a2ba68f4dd33c5e5bbc7ffde3ba87845 Cr-Commit-Position: refs/heads/master@{#369912}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -2 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 5 chunks +15 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 1 2 2 chunks +36 lines, -0 lines 0 comments Download
M ui/gl/gl_surface.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gl/gl_surface.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_egl.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_stub.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_stub.cc View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
jbauman
4 years, 11 months ago (2016-01-15 03:00:04 UTC) #2
Ken Russell (switch to Gerrit)
I strongly recommend adding a bug ID. It's clear that introducing DirectComposition support has needed ...
4 years, 11 months ago (2016-01-15 03:38:34 UTC) #3
Ken Russell (switch to Gerrit)
In fact https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/9027 shows that some more thought is needed on other EGL implementations.
4 years, 11 months ago (2016-01-15 03:39:21 UTC) #4
jbauman
On 2016/01/15 03:38:34, Ken Russell wrote: > I strongly recommend adding a bug ID. It's ...
4 years, 11 months ago (2016-01-15 21:50:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1583283004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1583283004/40001
4 years, 11 months ago (2016-01-16 00:33:56 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-16 01:44:04 UTC) #11
commit-bot: I haz the power
4 years, 11 months ago (2016-01-16 01:45:06 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2634dd83a2ba68f4dd33c5e5bbc7ffde3ba87845
Cr-Commit-Position: refs/heads/master@{#369912}

Powered by Google App Engine
This is Rietveld 408576698