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

Issue 6453126: Fix a parenthesis bug. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by Leon
Modified:
12 years, 1 month ago
Reviewers:
junov1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Fix a parenthesis bug. SkGPipeCanvas::needOpBytes was being called with the wrong value due to a misplaced parens in clipRect and clipPath. This can cause a crash if clip is called at just the right (wrong) time. Instead of writing a boolean to the stream, I have added a flag, which helps to avoid the parens problem. Also renamed some flags from _DrawOpsFlag to _DrawOpFlag for consistency. Lastly, added an assert that the size provided by the SkGPipeController is a multiple of four. Committed: https://code.google.com/p/skia/source/detail?r=5134

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -20 lines) Patch
M src/pipe/SkGPipePriv.h View 1 chunk +5 lines, -3 lines 0 comments Download
M src/pipe/SkGPipeRead.cpp View 7 chunks +9 lines, -9 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 5 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 4
Leon
12 years, 1 month ago (2012-08-15 21:35:39 UTC) #1
junov1
On 2012/08/15 21:35:39, scroggo-work wrote: The call sequence that would cause a crash, could you ...
12 years, 1 month ago (2012-08-16 13:49:33 UTC) #2
Leon
On 2012/08/16 13:49:33, junov1 wrote: > On 2012/08/15 21:35:39, scroggo-work wrote: > > The call ...
12 years, 1 month ago (2012-08-16 15:47:38 UTC) #3
junov1
12 years, 1 month ago (2012-08-16 17:12:03 UTC) #4
Fair enough.

lgtm.
Sign in to reply to this message.

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