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

Issue 6409048: Fix two sub-optimal iterator uses (Closed)

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

Description

Fix two sub-optimal iterator uses 1) replace an over elaborate method of achieving front 2) use new SkClipStack::prev functionality to back up an iterator

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed unused variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -13 lines) Patch
M src/core/SkCanvas.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 3 chunks +6 lines, -11 lines 0 comments Download

Messages

Total messages: 7
robertphillips
12 years, 1 month ago (2012-07-16 19:03:43 UTC) #1
reed1
lgtm -- should vandebo review this, or has he already cleared the idea?
12 years, 1 month ago (2012-07-16 19:30:27 UTC) #2
robertphillips
added vandebo
12 years, 1 month ago (2012-07-16 19:36:56 UTC) #3
Steve VanDeBogart
http://codereview.appspot.com/6409048/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/6409048/diff/1/src/pdf/SkPDFDevice.cpp#newcode232 src/pdf/SkPDFDevice.cpp:232: int count = 0; count isn't needed any more
12 years, 1 month ago (2012-07-16 20:20:13 UTC) #4
robertphillips
Ooops - nice catch. http://codereview.appspot.com/6409048/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/6409048/diff/1/src/pdf/SkPDFDevice.cpp#newcode232 src/pdf/SkPDFDevice.cpp:232: int count = 0; On ...
12 years, 1 month ago (2012-07-16 20:23:46 UTC) #5
Steve VanDeBogart
LGTM
12 years, 1 month ago (2012-07-16 20:27:51 UTC) #6
robertphillips
12 years, 1 month ago (2012-07-16 21:20:33 UTC) #7
committed as r4633
Sign in to reply to this message.

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