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

Issue 1314923002: GLProgramsTest can now randomly create a tree of GrFragmentProcessors instead of a linear pipeline (Closed)

Created:
5 years, 4 months ago by wangyix
Modified:
5 years, 3 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia@cs3_testcreate
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

There's a set probability that a linear pipeline of random procs will be created (old behavior), or a pipeline with a single proc tree (added behavior). Had to move GrComposeEffect class definition from SkComposeShader.cpp to SkComposeShader.h so that GLProgramsTest can call GrComposeEffect::Create() BUG=skia:4182 Committed: https://skia.googlesource.com/skia/+/059dffae800a81351c93596187099dfe09f2ba56

Patch Set 1 #

Total comments: 12

Patch Set 2 : nits by Josh #

Total comments: 6

Patch Set 3 : minlevels changed to 2 from 1 #

Patch Set 4 : rebase #

Patch Set 5 : removed warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -18 lines) Patch
M src/gpu/effects/GrXfermodeFragmentProcessor.cpp View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 4 2 chunks +71 lines, -12 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (7 generated)
wangyix
5 years, 4 months ago (2015-08-25 17:22:23 UTC) #2
joshualitt
I'm not sure what percent of the time we want to be creating trees vs ...
5 years, 4 months ago (2015-08-25 18:17:13 UTC) #3
wangyix
https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp File tests/GLProgramsTest.cpp (right): https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp#newcode153 tests/GLProgramsTest.cpp:153: if (0 == fp->numChildProcessors()) { On 2015/08/25 18:17:13, joshualitt ...
5 years, 4 months ago (2015-08-25 18:36:21 UTC) #4
joshualitt
https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp File tests/GLProgramsTest.cpp (right): https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp#newcode153 tests/GLProgramsTest.cpp:153: if (0 == fp->numChildProcessors()) { On 2015/08/25 18:36:21, wangyix ...
5 years, 4 months ago (2015-08-25 18:42:29 UTC) #5
wangyix
https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp File tests/GLProgramsTest.cpp (right): https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp#newcode149 tests/GLProgramsTest.cpp:149: GrFragmentProcessor* fp; On 2015/08/25 18:17:13, joshualitt wrote: > Can ...
5 years, 4 months ago (2015-08-25 18:55:05 UTC) #6
joshualitt
https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp File tests/GLProgramsTest.cpp (right): https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp#newcode149 tests/GLProgramsTest.cpp:149: GrFragmentProcessor* fp; On 2015/08/25 18:55:05, wangyix wrote: > On ...
5 years, 4 months ago (2015-08-25 18:56:41 UTC) #7
wangyix
https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp File tests/GLProgramsTest.cpp (right): https://codereview.chromium.org/1314923002/diff/1/tests/GLProgramsTest.cpp#newcode147 tests/GLProgramsTest.cpp:147: bool terminate = (1 == maxLevels) || (d->fRandom->nextF() < ...
5 years, 4 months ago (2015-08-25 19:18:52 UTC) #8
tomhudson
https://codereview.chromium.org/1314923002/diff/20001/include/core/SkComposeShader.h File include/core/SkComposeShader.h (right): https://codereview.chromium.org/1314923002/diff/20001/include/core/SkComposeShader.h#newcode100 include/core/SkComposeShader.h:100: const char* name() const override {return fName.c_str(); } Teensy-tiny ...
5 years, 4 months ago (2015-08-25 19:29:25 UTC) #9
wangyix
https://codereview.chromium.org/1314923002/diff/20001/tests/GLProgramsTest.cpp File tests/GLProgramsTest.cpp (right): https://codereview.chromium.org/1314923002/diff/20001/tests/GLProgramsTest.cpp#newcode196 tests/GLProgramsTest.cpp:196: // processor key; maxTreeLevels should be a number from ...
5 years, 4 months ago (2015-08-25 19:48:01 UTC) #10
wangyix
patch set 3 has changes described in the previous comment.
5 years, 4 months ago (2015-08-25 20:01:37 UTC) #12
wangyix
I just realized the version of create_random_proc_tree in patchset 3 can't generate certain types of ...
5 years, 4 months ago (2015-08-25 20:29:46 UTC) #13
wangyix
Patchset 3 has been deleted and subsequently replaced. create_random_proc_tree() remains unchanged for now. https://codereview.chromium.org/1314923002/diff/20001/include/core/SkComposeShader.h File ...
5 years, 4 months ago (2015-08-25 21:34:10 UTC) #15
joshualitt
On 2015/08/25 21:34:10, wangyix wrote: > Patchset 3 has been deleted and subsequently replaced. create_random_proc_tree() ...
5 years, 3 months ago (2015-09-01 13:54:14 UTC) #16
wangyix
So I added debug warnings that appear if you use CreateFromTwoProcessors() with a trivial xfer ...
5 years, 3 months ago (2015-09-09 21:39:17 UTC) #17
bsalomon
On 2015/09/09 21:39:17, wangyix wrote: > So I added debug warnings that appear if you ...
5 years, 3 months ago (2015-09-09 21:44:24 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314923002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314923002/120001
5 years, 3 months ago (2015-09-10 13:46:49 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-10 13:51:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314923002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314923002/120001
5 years, 3 months ago (2015-09-10 13:56:22 UTC) #25
commit-bot: I haz the power
5 years, 3 months ago (2015-09-10 13:57:09 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://skia.googlesource.com/skia/+/059dffae800a81351c93596187099dfe09f2ba56

Powered by Google App Engine
This is Rietveld 408576698