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

Issue 6493105: Check for invalid SkPictures (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by EricB
Modified:
12 years, 3 months ago
Reviewers:
Leon, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Check for invalid SkPictures - Remove hasRecorded() since nobody uses it. - Add "success" boolean to SkPicture stream constructor - Track failures in render_pictures and bench_pictures Committed: https://code.google.com/p/skia/source/detail?r=5573

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -34 lines) Patch
M include/core/SkPicture.h View 1 2 3 4 2 chunks +3 lines, -8 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 3 chunks +7 lines, -5 lines 0 comments Download
M tools/bench_pictures_main.cpp View 1 2 3 4 5 chunks +28 lines, -8 lines 0 comments Download
M tools/render_pictures_main.cpp View 1 2 3 4 7 chunks +26 lines, -13 lines 0 comments Download

Messages

Total messages: 14
EricB
12 years, 3 months ago (2012-09-11 13:58:20 UTC) #1
Leon
https://codereview.appspot.com/6493105/diff/1/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.appspot.com/6493105/diff/1/src/core/SkPicture.cpp#newcode128 src/core/SkPicture.cpp:128: fValid = true; fValid = src.fValid; https://codereview.appspot.com/6493105/diff/1/src/core/SkPicture.cpp#newcode258 src/core/SkPicture.cpp:258: fPlayback ...
12 years, 3 months ago (2012-09-11 14:15:04 UTC) #2
reed1
can hasRecorded() serve the same purpose? It returns false if nothing has been recorded. Not ...
12 years, 3 months ago (2012-09-11 14:17:02 UTC) #3
EricB
Uploaded patch set 2. I don't think hasRecorded() will work exactly the same way (wouldn't ...
12 years, 3 months ago (2012-09-11 14:55:22 UTC) #4
Leon
Yeah, I noticed that on an SkPicture where endRecording has been called (so fPlayback is ...
12 years, 3 months ago (2012-09-11 15:01:41 UTC) #5
reed1
On 2012/09/11 15:01:41, scroggo-work wrote: > Yeah, I noticed that on an SkPicture where endRecording ...
12 years, 3 months ago (2012-09-11 15:07:12 UTC) #6
EricB
Uploaded patch set 4. Removed hasRecorded() in favor of isEmpty(). Use isEmpty() to determine whether ...
12 years, 3 months ago (2012-09-11 15:31:47 UTC) #7
Leon
https://codereview.appspot.com/6493105/diff/8002/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.appspot.com/6493105/diff/8002/src/core/SkPicture.cpp#newcode199 src/core/SkPicture.cpp:199: return NULL == fPlayback && There can actually be ...
12 years, 3 months ago (2012-09-11 15:43:58 UTC) #8
reed1
lets consider adding some unittests for this guy. Those could exercise 1. picture w/o any ...
12 years, 3 months ago (2012-09-11 15:47:05 UTC) #9
EricB
Uploaded patch set 5.
12 years, 3 months ago (2012-09-17 18:10:52 UTC) #10
Leon
On 2012/09/17 18:10:52, EricB wrote: > Uploaded patch set 5. lgtm
12 years, 3 months ago (2012-09-17 18:18:50 UTC) #11
reed1
nit about lack of { } https://codereview.appspot.com/6493105/diff/3003/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.appspot.com/6493105/diff/3003/src/core/SkPicture.cpp#newcode246 src/core/SkPicture.cpp:246: if (success) nit ...
12 years, 3 months ago (2012-09-17 18:20:58 UTC) #12
EricB
Uploaded patch set 6: fix nits. Committed as r5573. https://codereview.appspot.com/6493105/diff/3003/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.appspot.com/6493105/diff/3003/src/core/SkPicture.cpp#newcode246 src/core/SkPicture.cpp:246: ...
12 years, 3 months ago (2012-09-17 18:26:17 UTC) #13
reed1
12 years, 3 months ago (2012-09-17 18:27:33 UTC) #14
lgtm
Sign in to reply to this message.

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