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

Issue 5626047: fixing backing store access in SkDeferredCanvas (Closed)

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

Patch Set 1 #

Patch Set 2 : added comments #

Total comments: 2

Patch Set 3 : cleaner approach for overriding the device bitmap #

Patch Set 4 : bitmap returned and passed by ref #

Patch Set 5 : arg back to being ptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -12 lines) Patch
M gyp/tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 1 chunk +7 lines, -4 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A tests/DeferredCanvasTest.cpp View 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 10
junov1
This fixes the webkit layout tests that were failing with deferred canvas enabled. I also ...
12 years, 10 months ago (2012-02-03 21:15:19 UTC) #1
junov1
BUG=http://code.google.com/p/skia/issues/detail?id=475
12 years, 10 months ago (2012-02-03 21:17:00 UTC) #2
reed1
are either of these necessary for M18 (i.e. does M18 use DeferredCanvas?) http://codereview.appspot.com/5626047/diff/2001/src/utils/SkDeferredCanvas.cpp File src/utils/SkDeferredCanvas.cpp ...
12 years, 10 months ago (2012-02-03 22:01:14 UTC) #3
junov1
On 2012/02/03 22:01:14, reed1 wrote: > are either of these necessary for M18 (i.e. does ...
12 years, 10 months ago (2012-02-06 15:02:59 UTC) #4
junov1
In the latest patch, I made a small API change to make the bitmap override ...
12 years, 10 months ago (2012-02-06 21:20:32 UTC) #5
reed1
Skia likes to return a const & instead of a const *, unless you're suggesting ...
12 years, 10 months ago (2012-02-07 13:10:08 UTC) #6
junov1
OK, I'll take care of that. At this point are we planing any more skia ...
12 years, 10 months ago (2012-02-07 14:22:02 UTC) #7
reed1
We are done rolling skia for M18. Any changes we want from here out will ...
12 years, 10 months ago (2012-02-07 14:31:11 UTC) #8
junov1
On 2012/02/07 13:10:08, reed1 wrote: > Skia likes to return a const & instead of ...
12 years, 10 months ago (2012-02-07 14:47:55 UTC) #9
reed1
12 years, 10 months ago (2012-02-07 15:44:51 UTC) #10
actually, skia is pretty consistent that we use & only with const, since the
call-site "looks" like its passing by value (which it semantically is). I think
the previous version is correct:

    const SkBitmap& onAccessBitmap(SkBitmap*);

Takes a mutable argument, returns an immutable one.
Sign in to reply to this message.

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