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

Issue 2905633002: Bind framebuffer to fbo_ object before readPixels, rather than multisample_fbo_ (Closed)

Created:
3 years, 7 months ago by xinghua.cao
Modified:
3 years, 6 months ago
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Bind framebuffer to fbo_ object before readPixels, rather than multisample_fbo_ readPixels cannot get content from multisample_fbo_ directly, only from fbo_ whose content is resolved from multisample_fbo_. BUG=725579 TESTCASE=DrawingBufferSoftwareRenderingTest.framebufferBinding Review-Url: https://codereview.chromium.org/2905633002 Cr-Commit-Position: refs/heads/master@{#476807} Committed: https://chromium.googlesource.com/chromium/src/+/f4f805f9fb47f434766195909c50a46b484ffdbb

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add a test case for this patch #

Patch Set 3 : Resolve crash issue, need run releaseCallback once in case #

Total comments: 6

Patch Set 4 : Address zhenyao's comments #

Total comments: 3

Patch Set 5 : Address Ken's comments to remove the caching weak pointer #

Patch Set 6 : rebase code #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -62 lines) Patch
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp View 1 2 3 4 3 chunks +28 lines, -2 lines 2 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp View 1 2 3 4 8 chunks +16 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h View 1 2 3 4 3 chunks +68 lines, -54 lines 2 comments Download

Messages

Total messages: 52 (35 generated)
xinghua.cao
https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode314 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:314: : WebGLImageConversion::kAlphaDoNothing; Here may be binding framebuffer on multisample_fbo_, ...
3 years, 7 months ago (2017-05-24 11:24:39 UTC) #5
capn
Thanks, I can confirm this fixes the issue! Could you also add or modify tests ...
3 years, 7 months ago (2017-05-24 13:57:31 UTC) #8
Zhenyao Mo
https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode317 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:317: ReadBackFramebuffer(pixels, Size().Width(), Size().Height(), kReadbackSkia, I think BindFramebuffer(_, fbo_) should ...
3 years, 7 months ago (2017-05-24 20:31:01 UTC) #9
Ken Russell (switch to Gerrit)
I defer to Mo's review, but one comment. https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode317 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:317: ReadBackFramebuffer(pixels, ...
3 years, 7 months ago (2017-05-24 20:40:04 UTC) #10
Zhenyao Mo
https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode317 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:317: ReadBackFramebuffer(pixels, Size().Width(), Size().Height(), kReadbackSkia, On 2017/05/24 20:40:04, Ken Russell ...
3 years, 7 months ago (2017-05-24 20:53:30 UTC) #11
xinghua.cao
https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode317 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:317: ReadBackFramebuffer(pixels, Size().Width(), Size().Height(), kReadbackSkia, On 2017/05/24 20:53:30, Zhenyao Mo ...
3 years, 7 months ago (2017-05-25 10:43:17 UTC) #13
Zhenyao Mo
https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode317 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:317: ReadBackFramebuffer(pixels, Size().Width(), Size().Height(), kReadbackSkia, On 2017/05/25 10:43:17, xinghua.cao wrote: ...
3 years, 7 months ago (2017-05-25 18:03:00 UTC) #14
xinghua.cao
https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/2905633002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode317 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:317: ReadBackFramebuffer(pixels, Size().Width(), Size().Height(), kReadbackSkia, On 2017/05/25 18:03:00, Zhenyao Mo ...
3 years, 7 months ago (2017-05-26 15:26:23 UTC) #24
Zhenyao Mo
https://codereview.chromium.org/2905633002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp (right): https://codereview.chromium.org/2905633002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp#newcode52 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp:52: gl_ = gl.get(); I don't think you should cache ...
3 years, 6 months ago (2017-05-26 22:38:35 UTC) #25
xinghua.cao
https://codereview.chromium.org/2905633002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp (right): https://codereview.chromium.org/2905633002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp#newcode52 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp:52: gl_ = gl.get(); On 2017/05/26 22:38:34, Zhenyao Mo wrote: ...
3 years, 6 months ago (2017-06-01 02:26:51 UTC) #30
Ken Russell (switch to Gerrit)
Thanks Xinghua for putting this together and Mo for reviewing. I defer to Mo's review; ...
3 years, 6 months ago (2017-06-01 21:37:43 UTC) #31
Zhenyao Mo
I agree with kbr's suggestion. Can you address that? Otherwise looks good.
3 years, 6 months ago (2017-06-01 23:47:52 UTC) #32
xinghua.cao
https://codereview.chromium.org/2905633002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp (right): https://codereview.chromium.org/2905633002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp#newcode52 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp:52: gl_ = gl.get(); On 2017/06/01 21:37:43, Ken Russell wrote: ...
3 years, 6 months ago (2017-06-02 16:06:29 UTC) #45
Ken Russell (switch to Gerrit)
Thank you Xinghua, looks great. LGTM. CQ'ing for you. https://codereview.chromium.org/2905633002/diff/100001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp (right): https://codereview.chromium.org/2905633002/diff/100001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp#newcode57 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp:57: ...
3 years, 6 months ago (2017-06-02 21:52:50 UTC) #46
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2905633002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp (right): https://codereview.chromium.org/2905633002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp#newcode52 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp:52: gl_ = gl.get(); On 2017/06/02 16:06:28, xinghua.cao wrote: > ...
3 years, 6 months ago (2017-06-02 21:54:14 UTC) #47
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/2905633002/100001
3 years, 6 months ago (2017-06-02 21:54:53 UTC) #49
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 22:00:16 UTC) #52
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f4f805f9fb47f434766195909c50...

Powered by Google App Engine
This is Rietveld 408576698