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

Issue 6454102: Adding API to SkGPipe for controlling memory usage externally (Closed)

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

Description

Adding API to SkGPipe and SkDeferredCanvas for controlling memory usage externally BUG=http://code.google.com/p/chromium/issues/detail?id=136828 Committed: https://code.google.com/p/skia/source/detail?r=4971

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -8 lines) Patch
M include/pipe/SkGPipe.h View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 3 4 4 chunks +49 lines, -3 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 2 chunks +38 lines, -4 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 18
junov1
12 years, 4 months ago (2012-08-06 14:35:34 UTC) #1
junov1
12 years, 4 months ago (2012-08-06 14:44:07 UTC) #2
reed1
Where are we heading with this API? We have a budget setter, and now a ...
12 years, 4 months ago (2012-08-06 14:57:43 UTC) #3
Leon
Will this fix the bug and get DeferredCanvas and Pipe into M22? CC'ing Derek, who ...
12 years, 4 months ago (2012-08-06 15:02:50 UTC) #4
junov1
On 2012/08/06 14:57:43, reed1 wrote: > Where are we heading with this API? We have ...
12 years, 4 months ago (2012-08-06 15:12:10 UTC) #5
junov1
On 2012/08/06 15:02:50, scroggo-work wrote: > Will this fix the bug and get DeferredCanvas and ...
12 years, 4 months ago (2012-08-06 15:13:23 UTC) #6
junov1
New patch
12 years, 4 months ago (2012-08-06 15:18:23 UTC) #7
reed1
can we add code in this CL that exercises it? tests? https://codereview.appspot.com/6454102/diff/6002/include/pipe/SkGPipe.h File include/pipe/SkGPipe.h (right): ...
12 years, 4 months ago (2012-08-06 15:23:33 UTC) #8
junov1
New patch. Did the following: - Changed freeMemoryIfPossible to return the number of freed bytes ...
12 years, 4 months ago (2012-08-06 17:35:23 UTC) #9
Leon
https://codereview.appspot.com/6454102/diff/1004/src/utils/SkDeferredCanvas.cpp File src/utils/SkDeferredCanvas.cpp (right): https://codereview.appspot.com/6454102/diff/1004/src/utils/SkDeferredCanvas.cpp#newcode168 src/utils/SkDeferredCanvas.cpp:168: return this->getDeferredDevice()->storageAllocatedForRecording(); Isn't this method only defined on SkDeferredDevice ...
12 years, 4 months ago (2012-08-06 18:15:10 UTC) #10
junov1
https://codereview.appspot.com/6454102/diff/1004/src/utils/SkDeferredCanvas.cpp File src/utils/SkDeferredCanvas.cpp (right): https://codereview.appspot.com/6454102/diff/1004/src/utils/SkDeferredCanvas.cpp#newcode726 src/utils/SkDeferredCanvas.cpp:726: this->freeMemoryIfPossible(~0); On 2012/08/06 18:15:10, scroggo-work wrote: > Doesn't it ...
12 years, 4 months ago (2012-08-06 18:49:59 UTC) #11
junov1
New patch. -> Response to comment + made sure all builds and passes tests with ...
12 years, 4 months ago (2012-08-06 18:52:43 UTC) #12
Leon
On 2012/08/06 18:49:59, junov1 wrote: > https://codereview.appspot.com/6454102/diff/1004/src/utils/SkDeferredCanvas.cpp > File src/utils/SkDeferredCanvas.cpp (right): > > https://codereview.appspot.com/6454102/diff/1004/src/utils/SkDeferredCanvas.cpp#newcode726 > ...
12 years, 4 months ago (2012-08-06 18:53:24 UTC) #13
junov1
On 2012/08/06 18:53:24, scroggo-work wrote: > I could be wrong here. I just know we ...
12 years, 4 months ago (2012-08-06 18:56:19 UTC) #14
Leon
https://codereview.appspot.com/6454102/diff/13001/src/pipe/SkGPipeWrite.cpp File src/pipe/SkGPipeWrite.cpp (right): https://codereview.appspot.com/6454102/diff/13001/src/pipe/SkGPipeWrite.cpp#newcode1366 src/pipe/SkGPipeWrite.cpp:1366: return false; 0 https://codereview.appspot.com/6454102/diff/13001/src/utils/SkDeferredCanvas.cpp File src/utils/SkDeferredCanvas.cpp (right): https://codereview.appspot.com/6454102/diff/13001/src/utils/SkDeferredCanvas.cpp#newcode716 src/utils/SkDeferredCanvas.cpp:716: ...
12 years, 4 months ago (2012-08-06 19:04:43 UTC) #15
junov1
New patch. https://codereview.appspot.com/6454102/diff/13001/src/utils/SkDeferredCanvas.cpp File src/utils/SkDeferredCanvas.cpp (right): https://codereview.appspot.com/6454102/diff/13001/src/utils/SkDeferredCanvas.cpp#newcode716 src/utils/SkDeferredCanvas.cpp:716: SkASSERT(0); // Not implemented for SkPicture backend ...
12 years, 4 months ago (2012-08-06 19:11:45 UTC) #16
Leon
looks good, although I think we're still in a "no checkin" state.
12 years, 4 months ago (2012-08-06 19:18:01 UTC) #17
Leon
12 years, 4 months ago (2012-08-07 13:52:19 UTC) #18
On 2012/08/06 19:18:01, scroggo-work wrote:
> looks good, although I think we're still in a "no checkin" state.

lgtm
Sign in to reply to this message.

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