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

Issue 2535173002: Prevent implicit framebuffer clear from clobbering alpha in emulated RGB (Closed)

Created:
4 years ago by Kai Ninomiya
Modified:
4 years ago
CC:
chromium-reviews, f(malita), krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jam, jbroman, Justin Novosad, Rik, darin-cc_chromium.org, pdr+graphicswatchlist_chromium.org, blink-reviews, piman+watch_chromium.org, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis, ccameron, erikchen
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent implicit framebuffer clear from clobbering alpha in emulated RGB In the case of emulated RGB framebuffers (for alpha:false on Mac, where it is backed by an RGBA IOSurface), the implicit framebuffer clear (due to preserveDrawingBuffer:false) could sometimes clobber the alpha channel of the RGBA IOSurface (which should always be 1.0). BUG=666259 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;master.tryserver.chromium.android:android_optional_gpu_tests_rel Committed: https://crrev.com/4259dbb0600a71bcff06f342294fe1546bec9f08 Cr-Commit-Position: refs/heads/master@{#435850}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix #

Total comments: 16

Patch Set 4 : address comments #

Total comments: 2

Patch Set 5 : remove unnecessary std::list #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -19 lines) Patch
A content/test/data/gpu/pixel_webgl_noalpha_implicit_clear.html View 1 chunk +89 lines, -0 lines 0 comments Download
M content/test/gpu/gpu_tests/pixel_expectations.py View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/gpu/gpu_tests/pixel_test_pages.py View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 7 chunks +19 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (22 generated)
Kai Ninomiya
4 years ago (2016-11-29 04:22:34 UTC) #4
Kai Ninomiya
kbr, PTAL
4 years ago (2016-12-01 02:30:12 UTC) #10
Ken Russell (switch to Gerrit)
Excellent work Kai, especially producing the thorough test. A couple of minor questions and concerns. ...
4 years ago (2016-12-01 07:20:43 UTC) #12
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2535173002/diff/40001/content/test/gpu/gpu_tests/pixel_expectations.py File content/test/gpu/gpu_tests/pixel_expectations.py (right): https://codereview.chromium.org/2535173002/diff/40001/content/test/gpu/gpu_tests/pixel_expectations.py#newcode45 content/test/gpu/gpu_tests/pixel_expectations.py:45: self.Fail('Pixel_WebGLGreenTriangle_NonChromiumImage_NoAA_NoAlpha', bug=666259) On 2016/12/01 07:20:43, Ken Russell wrote: > ...
4 years ago (2016-12-01 08:00:54 UTC) #13
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2535173002/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h (right): https://codereview.chromium.org/2535173002/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h#newcode120 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h:120: WeakPersistent<WebGLRenderingContextBase> m_context; On 2016/12/01 07:20:43, Ken Russell wrote: > ...
4 years ago (2016-12-01 08:36:47 UTC) #14
haraken
On 2016/12/01 08:36:47, Ken Russell wrote: > https://codereview.chromium.org/2535173002/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h > File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h > (right): > > ...
4 years ago (2016-12-01 08:39:33 UTC) #15
erikchen
https://codereview.chromium.org/2535173002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2535173002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode991 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:991: m_gl->ColorMask(true, true, true, false); On 2016/12/01 07:20:43, Ken Russell ...
4 years ago (2016-12-01 16:04:11 UTC) #17
ccameron
https://codereview.chromium.org/2535173002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2535173002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode991 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:991: m_gl->ColorMask(true, true, true, false); On 2016/12/01 16:04:11, erikchen wrote: ...
4 years ago (2016-12-01 19:26:00 UTC) #19
Kai Ninomiya
https://codereview.chromium.org/2535173002/diff/40001/content/test/gpu/gpu_tests/pixel_expectations.py File content/test/gpu/gpu_tests/pixel_expectations.py (right): https://codereview.chromium.org/2535173002/diff/40001/content/test/gpu/gpu_tests/pixel_expectations.py#newcode45 content/test/gpu/gpu_tests/pixel_expectations.py:45: self.Fail('Pixel_WebGLGreenTriangle_NonChromiumImage_NoAA_NoAlpha', bug=666259) On 2016/12/01 08:00:54, Ken Russell wrote: > ...
4 years ago (2016-12-01 23:30:20 UTC) #20
Kai Ninomiya
https://codereview.chromium.org/2535173002/diff/40001/content/test/gpu/gpu_tests/pixel_expectations.py File content/test/gpu/gpu_tests/pixel_expectations.py (right): https://codereview.chromium.org/2535173002/diff/40001/content/test/gpu/gpu_tests/pixel_expectations.py#newcode45 content/test/gpu/gpu_tests/pixel_expectations.py:45: self.Fail('Pixel_WebGLGreenTriangle_NonChromiumImage_NoAA_NoAlpha', bug=666259) On 2016/12/01 08:00:54, Ken Russell wrote: > ...
4 years ago (2016-12-01 23:30:20 UTC) #21
Ken Russell (switch to Gerrit)
Excellent work again Kai - thanks for carrying this through and your thorough testing. One ...
4 years ago (2016-12-01 23:45:31 UTC) #24
Kai Ninomiya
https://codereview.chromium.org/2535173002/diff/60001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h (right): https://codereview.chromium.org/2535173002/diff/60001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h#newcode1543 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h:1543: ScopedRGBEmulationColorMask* popActiveScopedRGBEmulationColorMask() { On 2016/12/01 23:45:30, Ken Russell wrote: ...
4 years ago (2016-12-02 00:05:27 UTC) #26
Ken Russell (switch to Gerrit)
Great. LGTM
4 years ago (2016-12-02 01:21:20 UTC) #27
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/2535173002/80001
4 years ago (2016-12-02 03:56:03 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-02 04:03:03 UTC) #36
commit-bot: I haz the power
4 years ago (2016-12-02 04:06:22 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4259dbb0600a71bcff06f342294fe1546bec9f08
Cr-Commit-Position: refs/heads/master@{#435850}

Powered by Google App Engine
This is Rietveld 408576698