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

Issue 1310003006: WebGL Code Refactoring: remove redundant validations for texImage2D and texSubImage2D (Closed)

Created:
5 years, 3 months ago by yunchao
Modified:
5 years, 3 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

WebGL Code Refactoring: remove redundant validations for texImage2D and texSubImage2D. Almost all validations in texImage2DBase() and texSubImage2DBase() have been done in their callers. These validations are executed twice. It is not necessary. For example, validateTexFuncParameters() is not very cheap. it is called in texImage2DBase(). This function is also called by validateTexFunc(). But all variants of texImage2D() calls both validateTexFunc() and texImage2DBase(). No WebGL 1.0 conformance test regression with this change. BUG=528180 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201886

Patch Set 1 : #

Patch Set 2 : code rebase #

Patch Set 3 : remove unnecessary validations in texImage2D/texImage2DBase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -36 lines) Patch
M Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 9 chunks +14 lines, -36 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
yunchao
A small change, PTAL. Thanks!
5 years, 3 months ago (2015-09-04 08:37:22 UTC) #3
bajones
On 2015/09/04 08:37:22, yunchao wrote: > A small change, PTAL. Thanks! LGTM, thanks for the ...
5 years, 3 months ago (2015-09-04 17:33:39 UTC) #4
Zhenyao Mo
On 2015/09/04 17:33:39, bajones wrote: > On 2015/09/04 08:37:22, yunchao wrote: > > A small ...
5 years, 3 months ago (2015-09-04 18:32:24 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310003006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310003006/20001
5 years, 3 months ago (2015-09-06 01:58:30 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/66217) ios_rel_device_ninja on ...
5 years, 3 months ago (2015-09-06 01:59:33 UTC) #9
yunchao
On 2015/09/04 17:33:39, bajones wrote: > On 2015/09/04 08:37:22, yunchao wrote: > > A small ...
5 years, 3 months ago (2015-09-07 14:29:43 UTC) #10
yunchao
On 2015/09/04 18:32:24, Zhenyao Mo wrote: > On 2015/09/04 17:33:39, bajones wrote: > > On ...
5 years, 3 months ago (2015-09-07 14:32:24 UTC) #11
Zhenyao Mo
LGTM
5 years, 3 months ago (2015-09-07 20:56:28 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/1310003006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310003006/60001
5 years, 3 months ago (2015-09-08 01:44:24 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-08 02:47:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310003006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310003006/60001
5 years, 3 months ago (2015-09-08 02:48:36 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 02:52:58 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201886

Powered by Google App Engine
This is Rietveld 408576698