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

Issue 13842017: Add OES_texture_half_float extension support in WebGL. (Closed)

Created:
7 years, 8 months ago by Jun Jiang
Modified:
7 years, 7 months ago
CC:
blink-reviews, jamesr, Stephen Chennney, jeez
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add OES_texture_half_float extension support in WebGL. It was firstly prototyped by Nayan Kumar K at https://bugs.webkit.org/show_bug.cgi?id=110936. This new patch refines the float to half-float conversion and adds for support for more formats like RGB, ALPHA, LUMINANCE, and LUMINANCE_ALPHA. BUG=233057

Patch Set 1 #

Total comments: 1

Patch Set 2 : pass value instead of pointer #

Total comments: 1

Patch Set 3 : incorporate OES_HALF_FLOAT test cases from khronos WebGL conformance test #

Patch Set 4 : move test cases to directory LayoutTest/webgl/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+433 lines, -67 lines) Patch
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float-with-canvas.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float-with-canvas-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float-with-image.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float-with-image-data.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float-with-image-data-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float-with-image-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float-with-video.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A + LayoutTests/webgl/conformance/extensions/oes-texture-half-float-with-video-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float.html View 1 2 3 7 chunks +42 lines, -14 lines 0 comments Download
A + LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-canvas.html View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
A + LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-image.html View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
A + LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-image-data.html View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
A + LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContext.cpp View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M Source/core/platform/graphics/GraphicsContext3D.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/GraphicsContext3D.cpp View 1 2 11 chunks +326 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Jun Jiang
To make it work on Desktop GL Implementation, patch on https://codereview.chromium.org/14402003/ is also needed. Tests ...
7 years, 8 months ago (2013-04-22 09:23:06 UTC) #1
Ken Russell (switch to Gerrit)
Jun, thanks for your work on this. It looks really good overall. One mechanical change ...
7 years, 8 months ago (2013-04-24 02:21:14 UTC) #2
Ken Russell (switch to Gerrit)
Also, if it's possible for you to incorporate the newly integrated oes-texture-half-float conformance tests (see ...
7 years, 8 months ago (2013-04-24 02:22:59 UTC) #3
Jun Jiang
On 2013/04/24 02:22:59, kbr wrote: > Also, if it's possible for you to incorporate the ...
7 years, 8 months ago (2013-04-24 15:57:16 UTC) #4
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/13842017/diff/6001/Source/core/platform/graphics/GraphicsContext3D.cpp File Source/core/platform/graphics/GraphicsContext3D.cpp (right): https://codereview.chromium.org/13842017/diff/6001/Source/core/platform/graphics/GraphicsContext3D.cpp#newcode1729 Source/core/platform/graphics/GraphicsContext3D.cpp:1729: }; The temporary arrays here and throughout are no ...
7 years, 8 months ago (2013-04-24 23:15:47 UTC) #5
Jun Jiang
On 2013/04/24 23:15:47, kbr wrote: > https://codereview.chromium.org/13842017/diff/6001/Source/core/platform/graphics/GraphicsContext3D.cpp > File Source/core/platform/graphics/GraphicsContext3D.cpp (right): > > https://codereview.chromium.org/13842017/diff/6001/Source/core/platform/graphics/GraphicsContext3D.cpp#newcode1729 > ...
7 years, 8 months ago (2013-04-25 10:26:47 UTC) #6
greggman
On 2013/04/25 10:26:47, Jun Jiang wrote: > On 2013/04/24 23:15:47, kbr wrote: > > > ...
7 years, 8 months ago (2013-04-25 16:26:35 UTC) #7
Ken Russell (switch to Gerrit)
On 2013/04/25 16:26:35, greggman wrote: > Why are we adding these tests to fast/canvas/webgl? I ...
7 years, 8 months ago (2013-04-25 19:54:58 UTC) #8
Ken Russell (switch to Gerrit)
The code changes LGTM but the tests should be added under webgl/ .
7 years, 8 months ago (2013-04-25 19:56:07 UTC) #9
Jun Jiang
On 2013/04/25 19:56:07, kbr wrote: > The code changes LGTM but the tests should be ...
7 years, 8 months ago (2013-04-26 01:32:01 UTC) #10
Ken Russell (switch to Gerrit)
On 2013/04/26 01:32:01, Jun Jiang wrote: > On 2013/04/25 19:56:07, kbr wrote: > > The ...
7 years, 8 months ago (2013-04-26 01:35:10 UTC) #11
Jun Jiang
On 2013/04/26 01:35:10, kbr wrote: > On 2013/04/26 01:32:01, Jun Jiang wrote: > > On ...
7 years, 8 months ago (2013-04-26 01:47:08 UTC) #12
Jun Jiang
On 2013/04/26 01:47:08, Jun Jiang wrote: > On 2013/04/26 01:35:10, kbr wrote: > > On ...
7 years, 8 months ago (2013-04-26 09:40:13 UTC) #13
Ken Russell (switch to Gerrit)
Committed in https://codereview.chromium.org/14113033 / https://src.chromium.org/viewvc/blink?view=rev&revision=149215 .
7 years, 8 months ago (2013-04-26 18:44:58 UTC) #14
Nayan
7 years, 7 months ago (2013-05-06 20:14:20 UTC) #15
Message was sent while issue was closed.
On 2013/04/26 18:44:58, kbr wrote:
> Committed in https://codereview.chromium.org/14113033 /
> https://src.chromium.org/viewvc/blink?view=rev&revision=149215 .

Thanks Jun for refining oes-texture-half-float implementation, logic of
converting from float to half-float looks really great. :) Sorry for leaving
this work half-baked, I was away from blink/webkit of late.

Powered by Google App Engine
This is Rietveld 408576698