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

Issue 5824056: Fix GrDrawState memory comparison (Closed)

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

Description

GrDrawState compares bytes to see if two objects are equal. This means that everything it includes really needs to be zero when it's supposed to be zero. We achieve this by expanding the type mask in SkMatrix from int8 to int32, getting rid of uninitialized padding. Incidentally, this was skia issue 354, which I'd marked as WontFix but doesn't hurt to fix. This passes gm/bench on Linux and fixes the Valgrind uninitialized warnings.

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Tracking down the real culprit #

Patch Set 4 : Expand the type field in SkMatrix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M include/core/SkMatrix.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5
TomH
12 years, 5 months ago (2012-03-14 21:03:35 UTC) #1
TomH
Try again...
12 years, 5 months ago (2012-03-14 21:47:38 UTC) #2
TomH
On 2012/03/14 21:47:38, TomH wrote: > Try again... And fail again. Current thought: get rid ...
12 years, 5 months ago (2012-03-14 22:02:28 UTC) #3
bsalomon
On 2012/03/14 22:02:28, TomH wrote: > On 2012/03/14 21:47:38, TomH wrote: > > Try again... ...
12 years, 5 months ago (2012-03-14 22:12:08 UTC) #4
TomH
12 years, 5 months ago (2012-03-15 13:07:44 UTC) #5
Closed in r3395.
Sign in to reply to this message.

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