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

Issue 6459088: Ensure that Pipe does not crash when attempting to draw after endRecording. (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:
DerekS
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Ensure that Pipe does not crash when attempting to draw after endRecording. Add a test for drawing a bitmap and a bitmapshader after endRecording. BUG=https://code.google.com/p/skia/issues/detail?id=774&can=3 Test=PipeTest Committed: https://code.google.com/p/skia/source/detail?r=5099

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -10 lines) Patch
M src/pipe/SkGPipeWrite.cpp View 1 5 chunks +11 lines, -7 lines 0 comments Download
M tests/PipeTest.cpp View 2 chunks +29 lines, -3 lines 0 comments Download

Messages

Total messages: 3
Leon
12 years, 1 month ago (2012-08-14 20:27:34 UTC) #1
DerekS
lgtm with a few nits https://codereview.appspot.com/6459088/diff/1/src/pipe/SkGPipeWrite.cpp File src/pipe/SkGPipeWrite.cpp (right): https://codereview.appspot.com/6459088/diff/1/src/pipe/SkGPipeWrite.cpp#newcode195 src/pipe/SkGPipeWrite.cpp:195: return NULL == fBitmapHeap ...
12 years, 1 month ago (2012-08-14 20:31:38 UTC) #2
Leon
12 years, 1 month ago (2012-08-14 20:38:11 UTC) #3
https://codereview.appspot.com/6459088/diff/1/src/pipe/SkGPipeWrite.cpp
File src/pipe/SkGPipeWrite.cpp (right):

https://codereview.appspot.com/6459088/diff/1/src/pipe/SkGPipeWrite.cpp#newco...
src/pipe/SkGPipeWrite.cpp:195: return NULL == fBitmapHeap ? 0 :
fBitmapHeap->bytesAllocated();
On 2012/08/14 20:31:39, DerekS wrote:
> can you add parenthesis here to make the order of operation clear?

Done.

https://codereview.appspot.com/6459088/diff/1/src/pipe/SkGPipeWrite.cpp#newco...
src/pipe/SkGPipeWrite.cpp:945: return NULL == fBitmapHeap ? 0 :
fBitmapHeap->freeMemoryIfPossible(bytesToFree);
On 2012/08/14 20:31:39, DerekS wrote:
> same

Done.
Sign in to reply to this message.

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