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

Issue 2370703003: Validate internalformat/format/type for uploading DOM elements to texture (Closed)

Created:
4 years, 2 months ago by qiankun
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Validate internalformat/format/type for uploading DOM elements to texture When the data source is a DOM elements, supported internalformat/format/type combination by TexImage is specified in WebGL 2.0 spec: https://www.khronos.org/registry/webgl/specs/latest/2.0/#TEXTURE_TYPES_FORMATS_FROM_DOM_ELEMENTS_TABLE. BUG=650213 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/cf9bdd36fdab41372d9df8f5765f0e388f9d2429 Cr-Commit-Position: refs/heads/master@{#422324}

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix TexImage with different data source #

Patch Set 3 : fix extension #

Total comments: 6

Patch Set 4 : rebase only #

Patch Set 5 : fix some nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -43 lines) Patch
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 13 chunks +147 lines, -42 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
qiankun
PTAL. https://codereview.chromium.org/2370703003/diff/1/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2370703003/diff/1/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5582 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5582: if (sourceType == SourceHTMLImageElement || sourceType == SourceHTMLCanvasElement ...
4 years, 2 months ago (2016-09-26 14:34:11 UTC) #3
Ken Russell (switch to Gerrit)
Sorry, this change doesn't look correct. https://codereview.chromium.org/2370703003/diff/1/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2370703003/diff/1/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5582 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5582: if (sourceType == ...
4 years, 2 months ago (2016-09-26 22:19:43 UTC) #8
Ken Russell (switch to Gerrit)
Also -- is there a conformance test for this change? If not, then please add ...
4 years, 2 months ago (2016-09-26 22:20:33 UTC) #9
qiankun
Thanks for review. I updated the code accordingly. Please review again. https://codereview.chromium.org/2370703003/diff/1/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): ...
4 years, 2 months ago (2016-09-27 10:22:25 UTC) #10
qiankun
Two conformance tests https://github.com/KhronosGroup/WebGL/pull/2064 and https://github.com/KhronosGroup/WebGL/pull/2068 landed. They passed with this CL. Please help to ...
4 years, 2 months ago (2016-10-01 01:45:40 UTC) #11
Zhenyao Mo
On 2016/10/01 01:45:40, qiankun wrote: > Two conformance tests https://github.com/KhronosGroup/WebGL/pull/2064 and > https://github.com/KhronosGroup/WebGL/pull/2068 landed. > ...
4 years, 2 months ago (2016-10-01 02:01:44 UTC) #12
Ken Russell (switch to Gerrit)
Thanks Qiankun for thinking through and revising this. The new code LGTM. Assuming it passes ...
4 years, 2 months ago (2016-10-01 03:52:05 UTC) #13
qiankun
https://codereview.chromium.org/2370703003/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2370703003/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode897 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:897: GL_INT, On 2016/10/01 03:52:05, Ken Russell wrote: > From ...
4 years, 2 months ago (2016-10-01 14:27:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2370703003/80001
4 years, 2 months ago (2016-10-01 15:17:28 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-01 18:52:26 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-01 18:53:52 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cf9bdd36fdab41372d9df8f5765f0e388f9d2429
Cr-Commit-Position: refs/heads/master@{#422324}

Powered by Google App Engine
This is Rietveld 408576698