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

Issue 6445079: Refactor Bitmap Storage for SkPicture using SkPipe's design. (Closed)

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

Description

Refactor Bitmap Storage for SkPicture using SkPipe's design. Refactor Picture and Pipe bitmap storage into common data structure Update SkFlattenable buffers to be more modular. This CL is an effort to stage the conversion to named parameters for all SkFlattenable commands. This particular stage only does the following two things... 1. Move flattenable buffers from SkFlattenable.h into their own header. 2. Update and Add new read write methods for better clarity and convenience. BUG= Committed: https://code.google.com/p/skia/source/detail?r=4994

Patch Set 1 #

Total comments: 16

Patch Set 2 : rebasing and adding some comments #

Total comments: 13

Patch Set 3 : rebase #

Total comments: 7

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+621 lines, -286 lines) Patch
M gyp/core.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gyp/effects.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkBitmap.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M include/core/SkFlattenableBuffers.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M include/core/SkOrderedReadBuffer.h View 1 2 3 3 chunks +5 lines, -9 lines 0 comments Download
M include/core/SkOrderedWriteBuffer.h View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 2 3 4 chunks +2 lines, -40 lines 0 comments Download
A src/core/SkBitmapHeap.h View 1 2 3 1 chunk +248 lines, -0 lines 0 comments Download
A src/core/SkBitmapHeap.cpp View 1 2 1 chunk +258 lines, -0 lines 0 comments Download
M src/core/SkFlattenableBuffers.cpp View 1 2 3 2 chunks +0 lines, -12 lines 0 comments Download
M src/core/SkOrderedReadBuffer.cpp View 1 2 3 3 chunks +27 lines, -13 lines 0 comments Download
M src/core/SkOrderedWriteBuffer.cpp View 1 2 3 4 chunks +7 lines, -17 lines 0 comments Download
M src/core/SkPictureFlat.h View 1 2 3 12 chunks +20 lines, -54 lines 0 comments Download
M src/core/SkPictureFlat.cpp View 1 2 6 chunks +15 lines, -18 lines 0 comments Download
M src/core/SkPicturePlayback.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 1 chunk +8 lines, -9 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 3 chunks +2 lines, -41 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 4 chunks +9 lines, -56 lines 0 comments Download
M tests/CanvasTest.cpp View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download

Messages

Total messages: 10
DerekS
12 years, 4 months ago (2012-08-06 17:44:01 UTC) #1
Leon
I am still looking through the code, but I wanted to alert you to the ...
12 years, 4 months ago (2012-08-06 19:38:21 UTC) #2
Leon
http://codereview.appspot.com/6445079/diff/1/src/core/SkBitmapHeap.h File src/core/SkBitmapHeap.h (right): http://codereview.appspot.com/6445079/diff/1/src/core/SkBitmapHeap.h#newcode52 src/core/SkBitmapHeap.h:52: SkBitmapHeapEntry* insert(const SkBitmap& bitmap); On 2012/08/06 19:38:21, scroggo-work wrote: ...
12 years, 4 months ago (2012-08-06 19:47:36 UTC) #3
Leon
http://codereview.appspot.com/6445079/diff/1/src/core/SkBitmapHeap.cpp File src/core/SkBitmapHeap.cpp (right): http://codereview.appspot.com/6445079/diff/1/src/core/SkBitmapHeap.cpp#newcode214 src/core/SkBitmapHeap.cpp:214: fBitmapIndex.remove(index); Since we're removing the item at index, the ...
12 years, 4 months ago (2012-08-06 20:01:02 UTC) #4
DerekS
the new patch set has some better comments and I'll keep adding them as I ...
12 years, 4 months ago (2012-08-06 20:07:49 UTC) #5
Leon
http://codereview.appspot.com/6445079/diff/7001/src/core/SkBitmapHeap.h File src/core/SkBitmapHeap.h (right): http://codereview.appspot.com/6445079/diff/7001/src/core/SkBitmapHeap.h#newcode40 src/core/SkBitmapHeap.h:40: * Constructs a heap that is responsible for allocating ...
12 years, 4 months ago (2012-08-06 21:32:43 UTC) #6
DerekS
http://codereview.appspot.com/6445079/diff/7001/src/core/SkBitmapHeap.h File src/core/SkBitmapHeap.h (right): http://codereview.appspot.com/6445079/diff/7001/src/core/SkBitmapHeap.h#newcode40 src/core/SkBitmapHeap.h:40: * Constructs a heap that is responsible for allocating ...
12 years, 4 months ago (2012-08-07 16:05:02 UTC) #7
DerekS
http://codereview.appspot.com/6445079/diff/6002/src/core/SkOrderedReadBuffer.cpp File src/core/SkOrderedReadBuffer.cpp (right): http://codereview.appspot.com/6445079/diff/6002/src/core/SkOrderedReadBuffer.cpp#newcode166 src/core/SkOrderedReadBuffer.cpp:166: SkRefCnt* SkOrderedReadBuffer::readRefCntPtr() { I'll look into trying to remove ...
12 years, 4 months ago (2012-08-07 16:11:44 UTC) #8
Leon
LGTM! http://codereview.appspot.com/6445079/diff/6002/src/core/SkBitmapHeap.h File src/core/SkBitmapHeap.h (right): http://codereview.appspot.com/6445079/diff/6002/src/core/SkBitmapHeap.h#newcode23 src/core/SkBitmapHeap.h:23: // provides a means for a owner/consumer of ...
12 years, 4 months ago (2012-08-07 17:31:58 UTC) #9
DerekS
12 years, 4 months ago (2012-08-07 18:20:37 UTC) #10
http://codereview.appspot.com/6445079/diff/6002/src/core/SkBitmapHeap.h
File src/core/SkBitmapHeap.h (right):

http://codereview.appspot.com/6445079/diff/6002/src/core/SkBitmapHeap.h#newco...
src/core/SkBitmapHeap.h:23: // provides a means for a owner/consumer of the
bitmap to both access the bitmap and indicate it is done using it.
On 2012/08/07 17:31:58, scroggo-work wrote:
> over 100 chars

Done.

http://codereview.appspot.com/6445079/diff/6002/src/core/SkBitmapHeap.h#newco...
src/core/SkBitmapHeap.h:118: virtual SkBitmap* getBitmap(int32_t slot) {
On 2012/08/07 17:31:58, scroggo-work wrote:
> SK_OVERRIDE
> 
> Could also be const.

Done.
Sign in to reply to this message.

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