Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(905)

Issue 4309045: Refactor of GrGpuGLShaders (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by junov
Modified:
13 years, 5 months ago
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Refactoring the GrGpuGLShaders2 into 2 classes: GrGpuGLShaders and GrGLProgram. The change also contains stubs and placeholders for GrEffect (work in progress), which will extend shader and rendering capabilities in Ganesh. The hash keys for the program cache table have been modified to be able to accomodate variable-length keys, which will be required for GrEffect support.

Patch Set 1 #

Total comments: 44

Patch Set 2 : response to code review #

Patch Set 3 : made ownership transfer explicit for hash keys and CachedData #

Total comments: 2

Patch Set 4 : delete -> GrFree #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1982 lines, -5 lines) Patch
M gpu/include/GrConfig.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/include/GrDrawTarget.h View 2 chunks +2 lines, -0 lines 0 comments Download
A gpu/src/GrBinHashKey.h View 1 2 1 chunk +221 lines, -0 lines 0 comments Download
A gpu/src/GrGLEffect.h View 1 1 chunk +52 lines, -0 lines 0 comments Download
A gpu/src/GrGLProgram.h View 1 2 3 1 chunk +215 lines, -0 lines 0 comments Download
A gpu/src/GrGLProgram.cpp View 1 1 chunk +784 lines, -0 lines 2 comments Download
M gpu/src/GrGpuFactory.cpp View 1 3 chunks +9 lines, -4 lines 0 comments Download
A gpu/src/GrGpuGLShaders.h View 1 1 chunk +77 lines, -0 lines 0 comments Download
A gpu/src/GrGpuGLShaders.cpp View 1 2 1 chunk +533 lines, -0 lines 0 comments Download
M gpu/src/gr_files.mk View 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/src/gr_unittests.cpp View 1 2 2 chunks +76 lines, -0 lines 0 comments Download
M gyp/skia.gyp View 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 11
junov
PTAL
13 years, 5 months ago (2011-03-24 19:40:17 UTC) #1
reed1
http://codereview.appspot.com/4309045/diff/1/gpu/src/GrGpuFactory.cpp File gpu/src/GrGpuFactory.cpp (right): http://codereview.appspot.com/4309045/diff/1/gpu/src/GrGpuFactory.cpp#newcode45 gpu/src/GrGpuFactory.cpp:45: static const char* useEffectStr = getenv("GR_USE_EFFECT"); Hmmm, not sure ...
13 years, 5 months ago (2011-03-24 20:16:32 UTC) #2
twiz1
A quick first pass. Mostly style comments, as I wasn't extremely intimate with this code ...
13 years, 5 months ago (2011-03-24 20:21:46 UTC) #3
bsalomon
http://codereview.appspot.com/4309045/diff/1/gpu/src/GrBinHashKey.h File gpu/src/GrBinHashKey.h (right): http://codereview.appspot.com/4309045/diff/1/gpu/src/GrBinHashKey.h#newcode101 gpu/src/GrBinHashKey.h:101: GR_DEBUGCODE(key.fIsValid = false;) Maybe we should make this an ...
13 years, 5 months ago (2011-03-24 20:24:41 UTC) #4
reed1
Hurray! Another Cache/Key set of utilities :) Can we write a unittest in tests/ for ...
13 years, 5 months ago (2011-03-24 20:58:30 UTC) #5
junov
http://codereview.appspot.com/4309045/diff/1/gpu/src/GrBinHashKey.h File gpu/src/GrBinHashKey.h (right): http://codereview.appspot.com/4309045/diff/1/gpu/src/GrBinHashKey.h#newcode101 gpu/src/GrBinHashKey.h:101: GR_DEBUGCODE(key.fIsValid = false;) On 2011/03/24 20:24:41, bsalomon wrote: > ...
13 years, 5 months ago (2011-03-25 18:39:48 UTC) #6
bsalomon
On 2011/03/25 18:39:48, junov wrote: > http://codereview.appspot.com/4309045/diff/1/gpu/src/GrBinHashKey.h#newcode101 > gpu/src/GrBinHashKey.h:101: GR_DEBUGCODE(key.fIsValid = false;) > On 2011/03/24 ...
13 years, 5 months ago (2011-03-28 20:48:54 UTC) #7
junov
http://codereview.appspot.com/4309045/diff/12001/gpu/src/GrGLProgram.h File gpu/src/GrGLProgram.h (right): http://codereview.appspot.com/4309045/diff/12001/gpu/src/GrGLProgram.h#newcode141 gpu/src/GrGLProgram.h:141: delete []fEffectUniLocationsExtended; Oops, should be using GrFree here, will ...
13 years, 5 months ago (2011-03-30 18:58:21 UTC) #8
bsalomon
LGTM other than the GR_ARRAY_COUNT question. http://codereview.appspot.com/4309045/diff/16002/gpu/src/GrGLProgram.cpp File gpu/src/GrGLProgram.cpp (right): http://codereview.appspot.com/4309045/diff/16002/gpu/src/GrGLProgram.cpp#newcode326 gpu/src/GrGLProgram.cpp:326: if (GR_ARRAY_COUNT(GrShaderPrecision()) > ...
13 years, 5 months ago (2011-03-30 20:22:08 UTC) #9
junov
Is everyone else OK with this now? http://codereview.appspot.com/4309045/diff/16002/gpu/src/GrGLProgram.cpp File gpu/src/GrGLProgram.cpp (right): http://codereview.appspot.com/4309045/diff/16002/gpu/src/GrGLProgram.cpp#newcode326 gpu/src/GrGLProgram.cpp:326: if (GR_ARRAY_COUNT(GrShaderPrecision()) ...
13 years, 5 months ago (2011-03-30 20:49:43 UTC) #10
reed1
13 years, 5 months ago (2011-03-31 19:42:39 UTC) #11
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b