Chromium Code Reviews
DescriptionClean 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. #
Dependent Patchsets: Messages
Total messages: 28 (16 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||