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

Issue 5540071: Remove calls to new when modifying shader constants. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by John Bauman
Modified:
12 years, 3 months ago
Reviewers:
dgkoch, nicolas
CC:
angleproject-review_googlegroups.com
Base URL:
https://angleproject.googlecode.com/svn/trunk
Visibility:
Public.

Description

Remove calls to new when modifying shader constants. There were some unnecessary temporary copies we can remove, and the rest have a maximum size so we can allocate them on the stack. BUG=276 TEST= Committed: https://code.google.com/p/angleproject/source/detail?r=961

Patch Set 1 #

Patch Set 2 : add asserts, define constants in context.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -70 lines) Patch
M src/libGLESv2/Context.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/libGLESv2/Program.cpp View 1 24 chunks +24 lines, -69 lines 0 comments Download

Messages

Total messages: 6
John Bauman
12 years, 4 months ago (2012-01-17 19:39:22 UTC) #1
nicolas
Getting rid of the unnecessary copies looks good to me. The cases where you use ...
12 years, 4 months ago (2012-01-19 22:55:26 UTC) #2
nicolas
We had a closer look at it, and it seems the count parameter for applyUniform ...
12 years, 4 months ago (2012-01-20 15:25:20 UTC) #3
John Bauman
On 2012/01/20 15:25:20, nicolas wrote: > We had a closer look at it, and it ...
12 years, 4 months ago (2012-01-21 01:29:18 UTC) #4
nicolas
On 2012/01/21 01:29:18, John Bauman wrote: > Ok, added some asserts, moved the location of ...
12 years, 3 months ago (2012-01-23 21:10:59 UTC) #5
dgkoch
12 years, 3 months ago (2012-01-23 21:39:08 UTC) #6
LGTM
Sign in to reply to this message.

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