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

Issue 6267047: Refactor Program into Program and ProgramBinary. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by apatrick1
Modified:
11 years, 11 months ago
Reviewers:
dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Refactor Program into Program and ProgramBinary. Program manages the state and lifetime of the program object. ProgramBinary holds the linked program and the code to do the linking. There should be no functional change. WebGL conformance tests did not regress. Committed: https://code.google.com/p/angleproject/source/detail?r=1143

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -255 lines) Patch
M src/common/version.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/libGLESv2/Context.cpp View 1 2 3 8 chunks +29 lines, -22 lines 0 comments Download
M src/libGLESv2/Program.h View 1 2 3 5 chunks +62 lines, -27 lines 0 comments Download
M src/libGLESv2/Program.cpp View 1 2 3 65 chunks +310 lines, -174 lines 0 comments Download
M src/libGLESv2/Shader.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/libGLESv2/VertexDataManager.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/libGLESv2/libGLESv2.cpp View 1 2 3 20 chunks +116 lines, -28 lines 0 comments Download

Messages

Total messages: 8
apatrick1
Hi Daniel, I started looking into implementing OES_get_program_binary. As part of that, I split Program ...
11 years, 11 months ago (2012-06-04 22:22:15 UTC) #1
dgkoch
Hi Al, This does seem like a reasonable change. However I would like to see ...
11 years, 11 months ago (2012-06-06 16:16:27 UTC) #2
apatrick1
Daniel, Step 2 of 3. Either this patch or the OES_get_program_binary patch will need to ...
11 years, 11 months ago (2012-06-06 23:08:27 UTC) #3
apatrick1
Oh and I ran the WebGL conformance tests again with this in Chrome and there ...
11 years, 11 months ago (2012-06-06 23:13:45 UTC) #4
dgkoch
https://codereview.appspot.com/6267047/diff/3002/src/libGLESv2/Context.cpp File src/libGLESv2/Context.cpp (right): https://codereview.appspot.com/6267047/diff/3002/src/libGLESv2/Context.cpp#newcode4228 src/libGLESv2/Context.cpp:4228: element->UsageIndex = program->getProgramBinary()->getSemanticIndex(i); Maybe we could retrieve program->GetProgramBinary() once ...
11 years, 11 months ago (2012-06-07 02:00:37 UTC) #5
apatrick1
Fixed. Thanks. https://codereview.appspot.com/6267047/diff/3002/src/libGLESv2/Context.cpp File src/libGLESv2/Context.cpp (right): https://codereview.appspot.com/6267047/diff/3002/src/libGLESv2/Context.cpp#newcode4228 src/libGLESv2/Context.cpp:4228: element->UsageIndex = program->getProgramBinary()->getSemanticIndex(i); On 2012/06/07 02:00:37, dgkoch ...
11 years, 11 months ago (2012-06-07 19:04:51 UTC) #6
dgkoch
https://codereview.appspot.com/6267047/diff/3002/src/libGLESv2/Context.cpp File src/libGLESv2/Context.cpp (right): https://codereview.appspot.com/6267047/diff/3002/src/libGLESv2/Context.cpp#newcode4228 src/libGLESv2/Context.cpp:4228: element->UsageIndex = program->getProgramBinary()->getSemanticIndex(i); On 2012/06/07 19:04:51, apatrick1 wrote: > ...
11 years, 11 months ago (2012-06-07 20:52:12 UTC) #7
dgkoch
11 years, 11 months ago (2012-06-07 21:03:23 UTC) #8
LGTM if you fix the one item mentioned

https://codereview.appspot.com/6267047/diff/7005/src/libGLESv2/Context.cpp
File src/libGLESv2/Context.cpp (right):

https://codereview.appspot.com/6267047/diff/7005/src/libGLESv2/Context.cpp#ne...
src/libGLESv2/Context.cpp:4228: element->UsageIndex =
program->getProgramBinary()->getSemanticIndex(i);
This getProgramBinary call could stand to be factored out of the loop.
Sign in to reply to this message.

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