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

Issue 4910045: Simplification of GrBinHashKey (Closed)

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

Description

Remove the streaming functionality from GrBinHashKey. This functionality is not required (because the GrEffect design was dropped). Streaming added unnecessary complexity, virtual overhead, dynamic allocation, multi-pass key construction, etc. I'm ripping it all out. BUG=http://code.google.com/p/skia/issues/detail?id=278

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -253 lines) Patch
M gpu/src/GrBinHashKey.h View 1 chunk +36 lines, -172 lines 3 comments Download
M gpu/src/GrGLProgram.h View 2 chunks +9 lines, -8 lines 0 comments Download
M gpu/src/GrGLProgram.cpp View 2 chunks +0 lines, -6 lines 0 comments Download
M gpu/src/GrGpuGLShaders.cpp View 2 chunks +4 lines, -9 lines 0 comments Download
M gpu/src/gr_unittests.cpp View 1 chunk +17 lines, -58 lines 1 comment Download

Messages

Total messages: 5
junov1
PTAL
13 years, 1 month ago (2011-08-18 15:10:55 UTC) #1
bsalomon
Cleanup, yay! :) It LGTM with some minor comments. http://codereview.appspot.com/4910045/diff/1/gpu/src/GrBinHashKey.h File gpu/src/GrBinHashKey.h (right): http://codereview.appspot.com/4910045/diff/1/gpu/src/GrBinHashKey.h#newcode43 gpu/src/GrBinHashKey.h:43: ...
13 years, 1 month ago (2011-08-18 15:30:58 UTC) #2
junov1
http://codereview.appspot.com/4910045/diff/1/gpu/src/GrBinHashKey.h File gpu/src/GrBinHashKey.h (right): http://codereview.appspot.com/4910045/diff/1/gpu/src/GrBinHashKey.h#newcode63 gpu/src/GrBinHashKey.h:63: GrAssert(fIsValid && key.fIsValid); Checking the hash (for an early ...
13 years, 1 month ago (2011-08-18 18:08:17 UTC) #3
bsalomon
> gpu/src/GrBinHashKey.h:63: GrAssert(fIsValid && key.fIsValid); > Checking the hash (for an early exit opportunity) would ...
13 years, 1 month ago (2011-08-18 18:12:35 UTC) #4
bsalomon
13 years, 1 month ago (2011-08-18 18:59:59 UTC) #5
Hey Justin, This broke a bunch of builds on the skia bots. Looks like its
related to using a local enum as a template param in the unit test.

On Thu, Aug 18, 2011 at 2:12 PM, <bsalomon@google.com> wrote:

> gpu/src/GrBinHashKey.h:63: GrAssert(fIsValid && key.fIsValid);
>> Checking the hash (for an early exit opportunity) would only be useful
>>
> if we
>
>> were looking specifically for a not equal condition.  This method is
>>
> used for
>
>> checking equality, and sorting, so a full key compare is mandatory.
>>
> FYI: In the
>
>> case of equality, the hashes can collide.
>>
>
> Got it, I didn't pickup on the fact that this is only used when the
> hashes match and we're looking for full equality.
>
>
>
http://codereview.appspot.com/**4910045/<http://codereview.appspot.com/4910045/>
>
Sign in to reply to this message.

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