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

Issue 1950053003: Clean up DrawingBuffer. (Closed)

Created:
4 years, 7 months ago by erikchen
Modified:
4 years, 7 months ago
CC:
chromium-reviews, krit, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, danakj+watch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jbroman, Justin Novosad, haraken, Rik, f(malita), blink-reviews, piman+watch_chromium.org, Stephen Chennney, kinuko+watch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up DrawingBuffer. This CL is a refactor and should have no functional effect. Changes in this CL: 1. The constructor of DrawingBuffer now takes wantDepth and wantStencil arguments. These parameters, which never change, no longer need to be passed to Initialize() or reset(). 2. Renamed requiresRGBEmulation() -> requiresAlphaMask. Renamed attachColorBufferToCurrentFBO() -> attachColorBufferToReadFramebuffer(). 3. Added documentation. 4. Moved member initialization into the header file. 5. There used to be multiple methods named resize*, some of which were incorrectly named, and some of which had odd dependencies on each other. The methods resizeMultisampleFramebuffer() and resizeDepthStencil() now have no external dependencies. There is a new method resizeDefaultFramebuffer() which resizes all buffers attached to the default framebuffer, and all associated framebuffers. BUG=607130 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/9ddf8ea36a7ddf52bd3fcc23f5684abe04ae2778 Cr-Commit-Position: refs/heads/master@{#391779}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Comments from kbr. #

Patch Set 4 : resizeDefaultFramebuffer was being passed the wrong parameter. Check the right framebuffer for comp… #

Patch Set 5 : Fix completeness checks. #

Messages

Total messages: 28 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950053003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950053003/20001
4 years, 7 months ago (2016-05-04 20:37:34 UTC) #6
erikchen
kbr: Please review. This cleanup is in preparation for the upcoming workarounds and making sure ...
4 years, 7 months ago (2016-05-04 20:40:49 UTC) #8
Ken Russell (switch to Gerrit)
Thanks for doing this reorganization. LGTM. Couple of minor style comments. https://codereview.chromium.org/1950053003/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): ...
4 years, 7 months ago (2016-05-04 21:13:12 UTC) #10
danakj
https://codereview.chromium.org/1950053003/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h (right): https://codereview.chromium.org/1950053003/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h#newcode352 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h:352: bool m_scissorEnabled = false; On 2016/05/04 21:13:11, Ken Russell ...
4 years, 7 months ago (2016-05-04 21:14:00 UTC) #12
erikchen
https://codereview.chromium.org/1950053003/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/1950053003/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode242 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:242: // Resolve the multisampled buffer into m_colorBuffertexture. On 2016/05/04 ...
4 years, 7 months ago (2016-05-04 21:17:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950053003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950053003/40001
4 years, 7 months ago (2016-05-04 21:18:21 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_optional_gpu_tests_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_optional_gpu_tests_rel/builds/408)
4 years, 7 months ago (2016-05-04 22:14:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950053003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950053003/80001
4 years, 7 months ago (2016-05-05 00:04:31 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/65310)
4 years, 7 months ago (2016-05-05 02:21:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950053003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950053003/80001
4 years, 7 months ago (2016-05-05 08:27:23 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-05 09:10:10 UTC) #26
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 09:11:13 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9ddf8ea36a7ddf52bd3fcc23f5684abe04ae2778
Cr-Commit-Position: refs/heads/master@{#391779}

Powered by Google App Engine
This is Rietveld 408576698