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

Issue 1286293002: Added class AutoFragmentChildProcAdvance to be constructed before a child emitCode and destructed a… (Closed)

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

Description

Added class AutoFragmentChildProcAdvance to be constructed before a child emitCode and destructed after Fixed wrong indent Changed auto child advance back to backwards linear search for getting subset of coords and samplers array of a child Used offset from parent instead of backwards linear search to find a child proc's coords and transforms in Auto...Advance append mangleString to variable name in nameVariable() BUILDS! Added AutoFragmentChildProcAdvance class; fixed a few errors from previous commits BUG=skia:4182 Committed: https://skia.googlesource.com/skia/+/69ed114d388c56e83a2385d8b8182e6d05a0b073

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixed Josh's nits; added comments explaining backwards linear search for child coords/samplers #

Total comments: 4

Patch Set 3 : added comment explaining AutoFragmentChildProcAdvance #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -3 lines) Patch
M include/gpu/GrFragmentProcessor.h View 1 1 chunk +20 lines, -2 lines 0 comments Download
M src/gpu/gl/builders/GrGLFragmentShaderBuilder.h View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp View 1 1 chunk +82 lines, -0 lines 0 comments Download
M src/gpu/gl/builders/GrGLProgramBuilder.cpp View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 22 (8 generated)
wangyix
The AutoFragmentChildProcAdvance class was added. In its constructor, given the index of the child you ...
5 years, 4 months ago (2015-08-12 22:02:34 UTC) #2
joshualitt
nits https://codereview.chromium.org/1286293002/diff/1/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp File src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp (right): https://codereview.chromium.org/1286293002/diff/1/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp#newcode350 src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp:350: if (!coords.empty()) braces https://codereview.chromium.org/1286293002/diff/1/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp#newcode352 src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp:352: if (!samplers.empty()) braces
5 years, 4 months ago (2015-08-13 18:33:53 UTC) #3
wangyix
The EmitArgs no longer uses SkTArray for coords and samplers; instead, it takes a pointer ...
5 years, 4 months ago (2015-08-14 13:46:16 UTC) #5
wangyix
Removed the patchset changing SkTArray to a ptr and a count.
5 years, 4 months ago (2015-08-14 15:43:06 UTC) #7
joshualitt
looks good to me, Brian will you take a quick look to see if you ...
5 years, 4 months ago (2015-08-14 15:51:59 UTC) #8
tomhudson
https://codereview.chromium.org/1286293002/diff/20001/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp File src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp (right): https://codereview.chromium.org/1286293002/diff/20001/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp#newcode372 src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp:372: */ This sounds really complicated - why not store ...
5 years, 4 months ago (2015-08-14 15:58:48 UTC) #10
wangyix
https://codereview.chromium.org/1286293002/diff/20001/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp File src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp (right): https://codereview.chromium.org/1286293002/diff/20001/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp#newcode372 src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp:372: */ On 2015/08/14 15:58:48, tomhudson wrote: > This sounds ...
5 years, 4 months ago (2015-08-14 16:07:28 UTC) #11
joshualitt
On 2015/08/14 16:07:28, wangyix wrote: > https://codereview.chromium.org/1286293002/diff/20001/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp > File src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp (right): > > https://codereview.chromium.org/1286293002/diff/20001/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp#newcode372 > ...
5 years, 4 months ago (2015-08-14 18:55:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286293002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286293002/80001
5 years, 4 months ago (2015-08-14 20:39:20 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/1892)
5 years, 4 months ago (2015-08-14 20:40:20 UTC) #17
wangyix
Need LGTM from Brian.
5 years, 4 months ago (2015-08-14 20:46:23 UTC) #18
bsalomon
On 2015/08/14 20:46:23, wangyix wrote: > Need LGTM from Brian. lgtm
5 years, 4 months ago (2015-08-18 14:12:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286293002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286293002/80001
5 years, 4 months ago (2015-08-18 14:13:39 UTC) #21
commit-bot: I haz the power
5 years, 4 months ago (2015-08-18 14:24:32 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://skia.googlesource.com/skia/+/69ed114d388c56e83a2385d8b8182e6d05a0b073

Powered by Google App Engine
This is Rietveld 408576698