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

Issue 6353098: Refactor SkDeque's iterator and allocation method (Closed)

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

Description

This CL: loosens up the restrictions on SkDeque's iterator - allowing forward, backward and mixed iteration allows the user to specify the number of elements that are allocated together in a block

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed code review issues #

Total comments: 8

Patch Set 3 : Addressed code review issues #

Total comments: 4

Patch Set 4 : Addressed code review issues #

Total comments: 3

Patch Set 5 : Fixed nit #

Patch Set 6 : Switched F2BIter over to using private inheritance #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -75 lines) Patch
M include/core/SkDeque.h View 1 2 3 4 5 2 chunks +58 lines, -12 lines 0 comments Download
M src/core/SkDeque.cpp View 1 2 3 4 11 chunks +104 lines, -51 lines 0 comments Download
M tests/DequeTest.cpp View 1 2 3 4 chunks +80 lines, -12 lines 0 comments Download

Messages

Total messages: 14
robertphillips
11 years, 11 months ago (2012-07-13 14:47:59 UTC) #1
reed1
I need to understand more about the changes to Deque first http://codereview.appspot.com/6353098/diff/1/include/core/SkClipStack.h File include/core/SkClipStack.h (right): ...
11 years, 11 months ago (2012-07-13 14:59:40 UTC) #2
robertphillips
http://codereview.appspot.com/6353098/diff/1/include/core/SkClipStack.h File include/core/SkClipStack.h (right): http://codereview.appspot.com/6353098/diff/1/include/core/SkClipStack.h#newcode85 include/core/SkClipStack.h:85: This is just a helper function that updates "fClip" ...
11 years, 11 months ago (2012-07-13 15:10:22 UTC) #3
robertphillips
Added comments. Renamed Iterators (both in SkDeque & SkClipStack) Added shallow wrapper Iterators to hide ...
11 years, 11 months ago (2012-07-13 19:41:25 UTC) #4
reed1
can we have a CL just for the Deque change? It seems core and important ...
11 years, 11 months ago (2012-07-13 19:54:27 UTC) #5
robertphillips
Now focused on SkDeque http://codereview.appspot.com/6353098/diff/5001/include/core/SkDeque.h File include/core/SkDeque.h (left): http://codereview.appspot.com/6353098/diff/5001/include/core/SkDeque.h#oldcode18 include/core/SkDeque.h:18: SkDeque(size_t elemSize, void* storage, size_t ...
11 years, 11 months ago (2012-07-16 13:14:14 UTC) #6
reed1
much clearer. a few nits/questions, but LGTM http://codereview.appspot.com/6353098/diff/13001/include/core/SkDeque.h File include/core/SkDeque.h (right): http://codereview.appspot.com/6353098/diff/13001/include/core/SkDeque.h#newcode46 include/core/SkDeque.h:46: /** I ...
11 years, 11 months ago (2012-07-16 14:21:45 UTC) #7
robertphillips
http://codereview.appspot.com/6353098/diff/13001/include/core/SkDeque.h File include/core/SkDeque.h (right): http://codereview.appspot.com/6353098/diff/13001/include/core/SkDeque.h#newcode46 include/core/SkDeque.h:46: /** 1) Done. 2) I made the method private, ...
11 years, 11 months ago (2012-07-16 15:12:09 UTC) #8
reed1
Do we want to keep the SkASSERT in the iter? http://codereview.appspot.com/6353098/diff/18001/include/core/SkDeque.h File include/core/SkDeque.h (right): http://codereview.appspot.com/6353098/diff/18001/include/core/SkDeque.h#newcode118 ...
11 years, 11 months ago (2012-07-16 15:29:11 UTC) #9
robertphillips
Do you mean the asserts in the hidden functions in F2BIter? If so, then I ...
11 years, 11 months ago (2012-07-16 15:44:14 UTC) #10
reed1
hiding : ah right I think a better way might be to either 1. inherit ...
11 years, 11 months ago (2012-07-16 15:46:34 UTC) #11
robertphillips
Switched over to private inheritance
11 years, 11 months ago (2012-07-16 16:55:41 UTC) #12
reed1
lgtm
11 years, 11 months ago (2012-07-16 16:56:54 UTC) #13
robertphillips
11 years, 11 months ago (2012-07-16 16:59:12 UTC) #14
committed as r4624
Sign in to reply to this message.

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