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

Issue 6421060: Refactoring how SkDeferredCanvas manages mutable bitmaps (Closed)

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

Description

Refactoring how SkDeferredCanvas manages mutable bitmaps This CL makes the SkGPipe flavor of SkDeferredCanvas properly decide whether to flush or record mutable bitmaps. The flushing is now managed by conditionally switching the canvas to non-deferred mode, which avoids an unnecessary transient copy of the bitmap. BUG=http://code.google.com/p/chromium/issues/detail?id=137884 TEST=DeferredCanvas unit test, sub test TestDeferredCanvasMemoryLimit Committed: https://code.google.com/p/skia/source/detail?r=4756

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -44 lines) Patch
M include/utils/SkDeferredCanvas.h View 1 2 3 4 5 6 5 chunks +21 lines, -4 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 5 6 15 chunks +85 lines, -34 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 15
junov1
PTAL
13 years ago (2012-07-23 20:28:26 UTC) #1
junov1
On 2012/07/23 20:28:26, junov1 wrote: > PTAL Patch set 3+4 fix the case of a ...
13 years ago (2012-07-23 20:41:50 UTC) #2
reed1
Lets have a VC tomorrow. I need some hand-holding understanding the issue/fix.
13 years ago (2012-07-23 20:58:48 UTC) #3
junov1
On 2012/07/23 20:58:48, reed1 wrote: > Lets have a VC tomorrow. I need some hand-holding ...
13 years ago (2012-07-23 21:10:00 UTC) #4
Leon
I think that if we can, we should have the SharedHeap report how much space ...
13 years ago (2012-07-23 21:23:22 UTC) #5
junov1
On Mon, Jul 23, 2012 at 5:23 PM, <scroggo@google.com> wrote: > I think that if ...
13 years ago (2012-07-24 15:00:43 UTC) #6
Leon
https://codereview.appspot.com/6421060/diff/1013/include/utils/SkDeferredCanvas.h File include/utils/SkDeferredCanvas.h (right): https://codereview.appspot.com/6421060/diff/1013/include/utils/SkDeferredCanvas.h#newcode89 include/utils/SkDeferredCanvas.h:89: * Returns true if deferred drawing is currenlty enabled. ...
13 years ago (2012-07-24 15:43:58 UTC) #7
Leon
utils/SkDeferredCanvas.cpp#**newcode579<https://codereview.appspot.com/6421060/diff/1012/src/utils/SkDeferredCanvas.cpp#newcode579> > > src/utils/SkDeferredCanvas.**cpp:579: // the controller, so we do as best > > we ...
13 years ago (2012-07-24 19:19:04 UTC) #8
Leon
https://codereview.appspot.com/6421060/diff/1013/src/utils/SkDeferredCanvas.cpp File src/utils/SkDeferredCanvas.cpp (right): https://codereview.appspot.com/6421060/diff/1013/src/utils/SkDeferredCanvas.cpp#newcode673 src/utils/SkDeferredCanvas.cpp:673: fTempBitmapStorage = 0; This does not reflect the fact ...
13 years ago (2012-07-24 22:01:57 UTC) #9
junov1
On 2012/07/24 22:01:57, scroggo-work wrote: > https://codereview.appspot.com/6421060/diff/1013/src/utils/SkDeferredCanvas.cpp > File src/utils/SkDeferredCanvas.cpp (right): > > https://codereview.appspot.com/6421060/diff/1013/src/utils/SkDeferredCanvas.cpp#newcode673 > ...
13 years ago (2012-07-25 14:53:30 UTC) #10
junov1
https://codereview.appspot.com/6421060/diff/1013/src/utils/SkDeferredCanvas.cpp#newcode575 > src/utils/SkDeferredCanvas.cpp:575: void > SkDeferredCanvas::DeferredDevice::accountForTempBitmapStorage(const SkBitmap& > bitmap) { > I wonder if a ...
13 years ago (2012-07-25 14:55:33 UTC) #11
junov1
new patch
13 years ago (2012-07-25 14:55:47 UTC) #12
Leon
lgtm
13 years ago (2012-07-25 17:07:26 UTC) #13
junov1
On 2012/07/25 17:07:26, scroggo-work wrote: > lgtm Mike: want to take a last peek before ...
13 years ago (2012-07-25 17:20:57 UTC) #14
reed1
13 years ago (2012-07-25 17:26:45 UTC) #15
lgtm
Sign in to reply to this message.

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