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

Issue 93873009: Moved GL enums from GraphicsContext3D to a more generic location. (Closed)

Created:
7 years ago by bajones
Modified:
7 years ago
CC:
blink-reviews, jamesr, krit, dsinclair, danakj, dglazkov+blink, Rik, adamk+blink_chromium.org, aandrey+blink_chromium.org, pdr., rwlbuis
Visibility:
Public.

Description

Moved GL enums from GraphicsContext3D to a more generic location. Updated all callers to use the new enums. This is the first step in eventually removing our dependence on GraphicsContext3D's thin WebGraphicsContext3D wrapper. BUG=326382 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163725

Patch Set 1 #

Patch Set 2 : Changed over to use the standard GL headers and enums. Also fixed some minor style issues. #

Total comments: 2

Patch Set 3 : Removed unneeded include #

Total comments: 7

Patch Set 4 : More include removal and renamed WebGL-specific enum #

Patch Set 5 : Rebase #

Patch Set 6 : Rebased again #

Patch Set 7 : Missed a couple of test files #

Total comments: 1

Patch Set 8 : c-style cast to static_cast #

Patch Set 9 : Yet another Rebase #

Patch Set 10 : Added third_party/khronos to necessary DEPS #

Patch Set 11 : Fixing signed/unsigned comparison warnings that magically don't show up on my local machine #

Patch Set 12 : Fixed Android issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1088 lines, -1395 lines) Patch
M Source/core/html/canvas/OESVertexArrayObject.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/canvas/WebGLBuffer.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/canvas/WebGLDrawBuffers.cpp View 1 2 3 4 4 chunks +24 lines, -24 lines 0 comments Download
M Source/core/html/canvas/WebGLFramebuffer.cpp View 1 2 3 4 16 chunks +72 lines, -70 lines 0 comments Download
M Source/core/html/canvas/WebGLObject.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/canvas/WebGLProgram.cpp View 1 5 chunks +8 lines, -8 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderbuffer.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/canvas/WebGLRenderingContext.cpp View 1 2 3 4 5 6 7 8 9 10 155 chunks +704 lines, -703 lines 0 comments Download
M Source/core/html/canvas/WebGLTexture.cpp View 1 6 chunks +39 lines, -39 lines 0 comments Download
M Source/core/html/canvas/WebGLVertexArrayObjectOES.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -7 lines 0 comments Download
M Source/platform/graphics/Extensions3D.h View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M Source/platform/graphics/Extensions3D.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/graphics/GraphicsContext3D.h View 1 2 3 4 2 chunks +2 lines, -314 lines 0 comments Download
M Source/platform/graphics/GraphicsContext3D.cpp View 1 2 3 4 11 chunks +57 lines, -57 lines 0 comments Download
M Source/platform/graphics/GraphicsContext3DImagePacking.cpp View 1 2 3 4 3 chunks +23 lines, -23 lines 0 comments Download
M Source/platform/graphics/GraphicsTypes3D.h View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M Source/platform/graphics/ImageBuffer.cpp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/graphics/filters/custom/CustomFilterCompiledProgram.cpp View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M Source/platform/graphics/filters/custom/CustomFilterGlobalContext.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/filters/custom/CustomFilterMesh.cpp View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M Source/platform/graphics/filters/custom/CustomFilterRenderer.cpp View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -10 lines 0 comments Download
M Source/platform/graphics/filters/custom/FECustomFilter.cpp View 1 2 3 4 5 6 7 8 9 chunks +29 lines, -29 lines 0 comments Download
M Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 3 4 5 20 chunks +75 lines, -75 lines 0 comments Download
M Source/web/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
Source/web/WebMediaPlayerClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/DrawingBufferTest.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M Source/web/tests/MockWebGraphicsContext3D.h View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
bajones
If you feel strongly about the enum naming convention, declaration style, or anything else please ...
7 years ago (2013-12-06 18:09:25 UTC) #1
jamesr
Do we need another copy of these enums? Why not use the khronos headers? Back ...
7 years ago (2013-12-06 19:51:00 UTC) #2
Ken Russell (switch to Gerrit)
On 2013/12/06 19:51:00, jamesr wrote: > Do we need another copy of these enums? Why ...
7 years ago (2013-12-06 20:19:55 UTC) #3
bajones
On 2013/12/06 19:51:00, jamesr wrote: > Do we need another copy of these enums? Why ...
7 years ago (2013-12-06 20:28:01 UTC) #4
Ken Russell (switch to Gerrit)
On 2013/12/06 20:28:01, bajones wrote: > On 2013/12/06 19:51:00, jamesr wrote: > > Do we ...
7 years ago (2013-12-06 20:29:31 UTC) #5
Stephen Chennney
On 2013/12/06 20:29:31, Ken Russell wrote: > On 2013/12/06 20:28:01, bajones wrote: > > On ...
7 years ago (2013-12-06 22:07:15 UTC) #6
jamesr
I think the third_party/khronos headers are checked directly into the chromium tree and not pulled ...
7 years ago (2013-12-06 22:14:55 UTC) #7
bajones
On 2013/12/06 22:14:55, jamesr wrote: > I think the third_party/khronos headers are checked directly into ...
7 years ago (2013-12-06 22:29:45 UTC) #8
jamesr
I think this looks great. I have to admit that I don't fully understand how ...
7 years ago (2013-12-06 22:41:00 UTC) #9
bajones
On 2013/12/06 22:41:00, jamesr wrote: > https://codereview.chromium.org/93873009/diff/20001/Source/core/platform/graphics/GraphicsContext3D.h#newcode35 > Source/core/platform/graphics/GraphicsContext3D.h:35: #include > "third_party/khronos/GLES2/gl2ext.h" > are these ...
7 years ago (2013-12-06 23:10:06 UTC) #10
Ken Russell (switch to Gerrit)
Thanks for proposing and doing this cleanup. I'd like to ask you to please hold ...
7 years ago (2013-12-06 23:45:19 UTC) #11
bajones
On 2013/12/06 23:45:19, Ken Russell wrote: > I'd like to ask you to please hold ...
7 years ago (2013-12-07 00:01:56 UTC) #12
bajones
Rebased again now that https://codereview.chromium.org/105123003 has landed. Any further concerns regarding this change?
7 years ago (2013-12-10 18:24:40 UTC) #13
Ken Russell (switch to Gerrit)
Thanks for your patience. Looks great. LGTM
7 years ago (2013-12-10 19:21:05 UTC) #14
bajones
On 2013/12/10 19:21:05, Ken Russell wrote: > Thanks for your patience. Looks great. LGTM Thank ...
7 years ago (2013-12-10 19:23:49 UTC) #15
jamesr
lgtm https://codereview.chromium.org/93873009/diff/120001/Source/web/tests/DrawingBufferTest.cpp File Source/web/tests/DrawingBufferTest.cpp (right): https://codereview.chromium.org/93873009/diff/120001/Source/web/tests/DrawingBufferTest.cpp#newcode87 Source/web/tests/DrawingBufferTest.cpp:87: ASSERT_EQ(target, (WGC3Denum)GL_TEXTURE_2D); static_cast<>, please. we don't use c-style ...
7 years ago (2013-12-10 23:43:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/93873009/140001
7 years ago (2013-12-11 00:21:29 UTC) #17
commit-bot: I haz the power
Failed to apply patch for Source/core/platform/graphics/filters/custom/CustomFilterCompiledProgram.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years ago (2013-12-11 00:21:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/93873009/160001
7 years ago (2013-12-11 00:41:19 UTC) #19
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=12670
7 years ago (2013-12-11 00:59:15 UTC) #20
Ken Russell (switch to Gerrit)
On 2013/12/11 00:59:15, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years ago (2013-12-11 03:05:16 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/93873009/180001
7 years ago (2013-12-11 18:16:28 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) blink_platform_unittests, webkit_lint, webkit_python_tests, webkit_tests, webkit_unit_tests, wtf_unittests ...
7 years ago (2013-12-11 18:56:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/93873009/200001
7 years ago (2013-12-11 18:56:36 UTC) #24
commit-bot: I haz the power
Change committed as 163725
7 years ago (2013-12-11 20:01:38 UTC) #25
adamk
This broke the Android build, I've uploaded a revert in https://codereview.chromium.org/113153002/
7 years ago (2013-12-11 20:34:24 UTC) #26
adamk
7 years ago (2013-12-11 20:44:03 UTC) #27
Message was sent while issue was closed.
On 2013/12/11 20:34:24, adamk wrote:
> This broke the Android build, I've uploaded a revert in
> https://codereview.chromium.org/113153002/

And reverted in
https://src.chromium.org/viewvc/blink?revision=163726&view=revision

Powered by Google App Engine
This is Rietveld 408576698