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

Issue 1852533002: Remove alpha/depth/stencil/antialias from WGC3D::Attributes. (Closed)

Created:
4 years, 8 months ago by danakj
Modified:
4 years, 8 months ago
CC:
chrishtr, bajones, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jam, jbroman, Justin Novosad, Ken Russell (switch to Gerrit), kinuko+watch, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, piman, rwlbuis, Stephen Chennney, no sievers, Zhenyao Mo
Base URL:
https://chromium.googlesource.com/chromium/src.git@premul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove alpha/depth/stencil/antialias from WGC3D::Attributes. This removes the alpha, depth, stencil and antialias fields from the WebGraphicsContext3D::Attributes structure. These fields control properties of the default framebuffer. But since WebGL uses an offscreen context, the default frame buffer is not used so these attributes have no impact on the output of WebGL. Instead, pass the desired values as independent bools to DrawingBuffer and have it pass those around during setup (instead of storing them as members). R=chrishtr@chromium.org, kbr@chromium.org BUG=584497 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/7b9fe38d09d734b5a8ea838ed232f7dee0662d85 Cr-Commit-Position: refs/heads/master@{#384757}

Patch Set 1 #

Total comments: 16

Patch Set 2 : rm-alphadepthetc: . #

Patch Set 3 : rm-alphadepthetc: rebase #

Total comments: 7

Patch Set 4 : rm-alphadepthetc: notruelies #

Total comments: 3

Patch Set 5 : rm-alphadepthetc: testexpect #

Total comments: 2

Patch Set 6 : rm-alphadepthetc: testgeez #

Total comments: 6

Patch Set 7 : rm-alphadepthetc: rebase #

Patch Set 8 : rm-alphadepthetc: renamevar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -155 lines) Patch
M content/renderer/renderer_blink_platform_impl.cc View 1 2 1 chunk +10 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp View 1 chunk +1 line, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 5 chunks +19 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 1 2 3 4 5 6 7 8 chunks +23 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 3 4 5 6 7 22 chunks +40 lines, -54 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp View 1 2 3 4 5 10 chunks +33 lines, -23 lines 0 comments Download
M third_party/WebKit/public/platform/WebGraphicsContext3D.h View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 51 (15 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/1852533002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852533002/1
4 years, 8 months ago (2016-03-31 20:14:52 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_gn/builds/11987) mac_chromium_compile_dbg_ng on ...
4 years, 8 months ago (2016-03-31 20:17:55 UTC) #5
danakj
kbr: everything piman: content chrishtr: public https://codereview.chromium.org/1852533002/diff/1/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp File third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp (left): https://codereview.chromium.org/1852533002/diff/1/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp#oldcode32 third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp:32: if (settings && ...
4 years, 8 months ago (2016-03-31 20:27:57 UTC) #7
danakj
https://codereview.chromium.org/1852533002/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/1852533002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode500 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:500: m_gl->GetIntegerv(GL_ALPHA_BITS, &alphaBits); Oh, these seem to be wrong maybe ...
4 years, 8 months ago (2016-03-31 20:41:16 UTC) #8
danakj
https://codereview.chromium.org/1852533002/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/1852533002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode500 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:500: m_gl->GetIntegerv(GL_ALPHA_BITS, &alphaBits); On 2016/03/31 20:41:16, danakj wrote: > Oh, ...
4 years, 8 months ago (2016-03-31 20:46:43 UTC) #9
piman
lgtm https://codereview.chromium.org/1852533002/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/1852533002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode295 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:295: frontColorBufferMailbox = createNewMailbox(createTextureAndAllocateMemory(m_size, m_hasAlphaChannel)); On 2016/03/31 20:27:57, danakj ...
4 years, 8 months ago (2016-03-31 20:54:59 UTC) #10
piman
https://codereview.chromium.org/1852533002/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/1852533002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode500 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:500: m_gl->GetIntegerv(GL_ALPHA_BITS, &alphaBits); On 2016/03/31 20:46:43, danakj wrote: > On ...
4 years, 8 months ago (2016-03-31 21:07:49 UTC) #11
danakj
PTAL https://codereview.chromium.org/1852533002/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/1852533002/diff/1/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode500 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:500: m_gl->GetIntegerv(GL_ALPHA_BITS, &alphaBits); On 2016/03/31 21:07:49, piman wrote: > ...
4 years, 8 months ago (2016-03-31 21:57:24 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852533002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852533002/40001
4 years, 8 months ago (2016-03-31 22:06:03 UTC) #14
danakj
https://codereview.chromium.org/1852533002/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/1852533002/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode1309 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:1309: bool wantDepthOrStencilBuffer = m_requestedAttributes.depth() || m_requestedAttributes.stencil(); kbr: Please check ...
4 years, 8 months ago (2016-03-31 22:13:03 UTC) #15
chrishtr
lgtm
4 years, 8 months ago (2016-03-31 22:38:16 UTC) #16
piman
One thing, outside of that it seems fine. https://codereview.chromium.org/1852533002/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/1852533002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode491 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:491: m_hasDepthBuffer ...
4 years, 8 months ago (2016-04-01 00:24:15 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 00:38:35 UTC) #19
danakj
https://codereview.chromium.org/1852533002/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/1852533002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode491 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:491: m_hasDepthBuffer = wantDepthBuffer; On 2016/04/01 00:24:15, piman wrote: > ...
4 years, 8 months ago (2016-04-01 00:40:50 UTC) #20
danakj
https://codereview.chromium.org/1852533002/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/1852533002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode491 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:491: m_hasDepthBuffer = wantDepthBuffer; On 2016/04/01 00:40:50, danakj wrote: > ...
4 years, 8 months ago (2016-04-01 00:41:46 UTC) #21
piman
On Thu, Mar 31, 2016 at 5:40 PM, <danakj@chromium.org> wrote: > > > https://codereview.chromium.org/1852533002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp > ...
4 years, 8 months ago (2016-04-01 00:52:08 UTC) #22
piman
On Thu, Mar 31, 2016 at 5:40 PM, <danakj@chromium.org> wrote: > > > https://codereview.chromium.org/1852533002/diff/40001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp > ...
4 years, 8 months ago (2016-04-01 00:52:09 UTC) #23
danakj
On Thu, Mar 31, 2016 at 5:51 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
4 years, 8 months ago (2016-04-01 00:57:22 UTC) #24
danakj
On Thu, Mar 31, 2016 at 5:51 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
4 years, 8 months ago (2016-04-01 01:04:07 UTC) #25
piman
https://codereview.chromium.org/1852533002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp (right): https://codereview.chromium.org/1852533002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp#newcode711 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp:711: DepthStencilTestCase(true, true, 1, "depth only"), Are we testing 3 ...
4 years, 8 months ago (2016-04-01 01:40:28 UTC) #26
danakj
https://codereview.chromium.org/1852533002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp (right): https://codereview.chromium.org/1852533002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp#newcode711 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp:711: DepthStencilTestCase(true, true, 1, "depth only"), On 2016/04/01 01:40:28, piman ...
4 years, 8 months ago (2016-04-01 02:08:08 UTC) #27
danakj
https://codereview.chromium.org/1852533002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp (right): https://codereview.chromium.org/1852533002/diff/60001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp#newcode711 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp:711: DepthStencilTestCase(true, true, 1, "depth only"), On 2016/04/01 02:08:08, danakj ...
4 years, 8 months ago (2016-04-01 02:10:58 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852533002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852533002/80001
4 years, 8 months ago (2016-04-01 02:11:48 UTC) #30
piman
LGTM after last fix https://codereview.chromium.org/1852533002/diff/80001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp (right): https://codereview.chromium.org/1852533002/diff/80001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp#newcode710 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp:710: DepthStencilTestCase(true, true, 1, "depth only"), ...
4 years, 8 months ago (2016-04-01 02:55:25 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 03:36:59 UTC) #33
danakj
https://codereview.chromium.org/1852533002/diff/80001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp (right): https://codereview.chromium.org/1852533002/diff/80001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp#newcode710 third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp:710: DepthStencilTestCase(true, true, 1, "depth only"), On 2016/04/01 02:55:25, piman ...
4 years, 8 months ago (2016-04-01 19:29:29 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852533002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852533002/100001
4 years, 8 months ago (2016-04-01 19:31:00 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852533002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852533002/120001
4 years, 8 months ago (2016-04-01 19:32:18 UTC) #38
Ken Russell (switch to Gerrit)
LGTM. Thanks for working on this; this is a quite tricky cleanup. https://codereview.chromium.org/1852533002/diff/100001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp ...
4 years, 8 months ago (2016-04-01 20:31:27 UTC) #39
piman
https://codereview.chromium.org/1852533002/diff/100001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (left): https://codereview.chromium.org/1852533002/diff/100001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#oldcode497 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:497: } On 2016/04/01 20:31:27, Ken Russell wrote: > Not ...
4 years, 8 months ago (2016-04-01 20:35:42 UTC) #40
danakj
https://codereview.chromium.org/1852533002/diff/100001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/1852533002/diff/100001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode458 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:458: bool DrawingBuffer::initialize(const IntSize& size, bool wantDepthBuffer, bool wantStencilBuffer, bool ...
4 years, 8 months ago (2016-04-01 20:38:22 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852533002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852533002/140001
4 years, 8 months ago (2016-04-01 20:39:46 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/204290)
4 years, 8 months ago (2016-04-01 23:26:44 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852533002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852533002/140001
4 years, 8 months ago (2016-04-01 23:28:48 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-02 00:35:49 UTC) #49
commit-bot: I haz the power
4 years, 8 months ago (2016-04-02 00:38:09 UTC) #51
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7b9fe38d09d734b5a8ea838ed232f7dee0662d85
Cr-Commit-Position: refs/heads/master@{#384757}

Powered by Google App Engine
This is Rietveld 408576698