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

Issue 6445046: Make SkDeferredCanvas query SkGPipeWriter for space allocated for bitmaps. (Closed)

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

Description

Make SkDeferredCanvas query SkGPipeWriter for space allocated for bitmaps. SkGPipe now has a method to report how much memory is used for its shared heap. BUG=http://code.google.com/p/skia/issues/detail?id=738 TEST=DeferredCanvasTest Committed: https://code.google.com/p/skia/source/detail?r=4791

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -65 lines) Patch
M gm/gmmain.cpp View 1 chunk +1 line, -1 line 0 comments Download
M include/pipe/SkGPipe.h View 2 chunks +10 lines, -2 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 3 chunks +0 lines, -16 lines 0 comments Download
M src/pipe/SkGPipePriv.h View 3 chunks +8 lines, -1 line 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 6 chunks +37 lines, -1 line 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 8 chunks +3 lines, -43 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
Leon
I noticed that running the GM never triggers a flush due to hitting the limit. ...
12 years, 2 months ago (2012-07-25 21:24:53 UTC) #1
junov1
That it OK. The flush should only be triggered in extreme or degenerate cases, even ...
12 years, 2 months ago (2012-07-26 13:40:57 UTC) #2
reed1
lgtm
12 years, 2 months ago (2012-07-26 14:01:17 UTC) #3
junov1
https://codereview.appspot.com/6445046/diff/1/include/utils/SkDeferredCanvas.h File include/utils/SkDeferredCanvas.h (right): https://codereview.appspot.com/6445046/diff/1/include/utils/SkDeferredCanvas.h#newcode354 include/utils/SkDeferredCanvas.h:354: friend class AutoImmediateDrawIfNeeded; You can delete this line. It ...
12 years, 2 months ago (2012-07-26 14:03:19 UTC) #4
Leon
New patch uploaded. https://codereview.appspot.com/6445046/diff/1/include/utils/SkDeferredCanvas.h File include/utils/SkDeferredCanvas.h (right): https://codereview.appspot.com/6445046/diff/1/include/utils/SkDeferredCanvas.h#newcode354 include/utils/SkDeferredCanvas.h:354: friend class AutoImmediateDrawIfNeeded; On 2012/07/26 14:03:19, ...
12 years, 2 months ago (2012-07-26 16:44:03 UTC) #5
junov1
> It is true that no new pixelRef was allocated, but it is possible that ...
12 years, 2 months ago (2012-07-26 17:56:12 UTC) #6
reed1
12 years, 2 months ago (2012-07-26 18:08:39 UTC) #7
lgtm

possibly we could rename the new getters at each level, if we think they can be
more clearerer about what is being computed/tracked, but I have no specific
suggestion.
Sign in to reply to this message.

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