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

Issue 4561058: Shrink GL ProgramDesc from 88B to 24B (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by TomH
Modified:
13 years, 3 months ago
Reviewers:
bsalomon, junov1, reed1
CC:
Stephen White
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Skia issue 284 (http://code.google.com/p/skia/issues/detail?id=284) GrGLProgram::ProgramDesc is passed as input to GrBinHashKey::keyData(), which yesterday was identified as the most expensive Skia function in profiles of the FishIETank demo. Algorithm changes yielded a 6x speedup; this patch reduces the size of the data being hashed 3x for additional speedup. Bools and small enums are stored in bytes, one bool is merged into a preexisting flag byte. Many format tweaks (removal of trailing whitespace).

Patch Set 1 #

Patch Set 2 : remove commented-out code #

Patch Set 3 : remove commented-out member variable #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -81 lines) Patch
M gpu/src/GrGLProgram.h View 1 2 3 chunks +59 lines, -40 lines 1 comment Download
M gpu/src/GrGLProgram.cpp View 1 16 chunks +28 lines, -27 lines 0 comments Download
M gpu/src/GrGpuGLShaders.cpp View 1 6 chunks +11 lines, -14 lines 0 comments Download

Messages

Total messages: 5
TomH
Skia issue 284 (http://code.google.com/p/skia/issues/detail?id=284) GrGLProgram::ProgramDesc is passed as input to GrBinHashKey::keyData(), which yesterday was identified ...
13 years, 3 months ago (2011-06-02 15:09:19 UTC) #1
junov1
There are still unused bits in here. For example, some of the enum fields could ...
13 years, 3 months ago (2011-06-02 15:22:55 UTC) #2
reed1
we'll want a 2nd CL soon to make it clearer that enabled is overlayed with ...
13 years, 3 months ago (2011-06-02 15:23:48 UTC) #3
TomH
On 2011/06/02 15:22:55, junov1 wrote: > There are still unused bits in here. For example, ...
13 years, 3 months ago (2011-06-02 15:41:55 UTC) #4
TomH
13 years, 3 months ago (2011-06-02 15:47:58 UTC) #5
Committed in revision 1480.
Maintainability improvements are skia issue 287.
Sign in to reply to this message.

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