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

Issue 7228071: Fix android errors when unflattening an SkImageRef_ashmem object. (Closed)

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

Description

Fix android errors when unflattening an SkImageRef_ashmem object. Committed: https://code.google.com/p/skia/source/detail?r=7514

Patch Set 1 #

Patch Set 2 : refactor mutexes #

Total comments: 6

Patch Set 3 : addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -326 lines) Patch
M gyp/images.gyp View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M gyp/ports.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download
M include/core/SkPixelRef.h View 1 1 chunk +0 lines, -7 lines 0 comments Download
M include/images/SkImageRef.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/images/SkImageRef.cpp View 1 7 chunks +5 lines, -16 lines 0 comments Download
M src/images/SkImageRef_GlobalPool.cpp View 1 3 chunks +14 lines, -14 lines 0 comments Download
A + src/images/SkImageRef_ashmem.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + src/images/SkImageRef_ashmem.cpp View 1 2 chunks +0 lines, -3 lines 0 comments Download
M src/images/SkImages.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/ports/SkGlobalInitialization_default.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
D src/ports/SkImageRef_ashmem.h View 1 1 chunk +0 lines, -47 lines 0 comments Download
M src/ports/SkImageRef_ashmem.cpp View 1 1 chunk +0 lines, -234 lines 0 comments Download

Messages

Total messages: 9
DerekS
11 years, 5 months ago (2013-01-31 15:21:03 UTC) #1
Leon
So the new behavior is that SkImageRef_ashmem will share the same mutex with all SkImageRefs? ...
11 years, 5 months ago (2013-01-31 15:43:23 UTC) #2
DerekS
So the big problem is that in SkImageRef we have asserts everywhere like this SkASSERT(&gImageRefMutex ...
11 years, 5 months ago (2013-01-31 15:50:14 UTC) #3
DerekS
should I keep the ashmem header in src or move it to include?
11 years, 5 months ago (2013-01-31 18:37:16 UTC) #4
reed1
generic answer (take with grain of salt:) keep in src until absolutely necessary to make ...
11 years, 5 months ago (2013-01-31 19:46:05 UTC) #5
DerekS
On 2013/01/31 19:46:05, reed1 wrote: > generic answer (take with grain of salt:) keep in ...
11 years, 5 months ago (2013-01-31 19:54:43 UTC) #6
Leon
https://codereview.appspot.com/7228071/diff/4001/gyp/images.gyp File gyp/images.gyp (right): https://codereview.appspot.com/7228071/diff/4001/gyp/images.gyp#newcode25 gyp/images.gyp:25: '../include/images/SkImageRef_ashmem.h', Isn't the file in src/? https://codereview.appspot.com/7228071/diff/4001/gyp/images.gyp#newcode126 gyp/images.gyp:126: '../src/images/SkImageRef_ashmem.cpp', ...
11 years, 5 months ago (2013-01-31 20:30:36 UTC) #7
DerekS
https://codereview.appspot.com/7228071/diff/4001/gyp/images.gyp File gyp/images.gyp (right): https://codereview.appspot.com/7228071/diff/4001/gyp/images.gyp#newcode25 gyp/images.gyp:25: '../include/images/SkImageRef_ashmem.h', On 2013/01/31 20:30:36, scroggo-work wrote: > Isn't the ...
11 years, 5 months ago (2013-02-01 13:59:49 UTC) #8
Leon
11 years, 5 months ago (2013-02-01 15:51:55 UTC) #9
https://codereview.appspot.com/7228071/diff/4001/src/images/SkImageRef.cpp#ol...
> src/images/SkImageRef.cpp:19: SK_DECLARE_GLOBAL_MUTEX(gImageRefMutex);
> On 2013/01/31 20:30:36, scroggo-work wrote:
> > This is the only place we call SK_DECLARE_GLOBAL_MUTEX. Should we get rid of
> it
> > as well? Or do we think it is potentially valuable?
> 
> I think it is potentially valuable so that if we want to utilize this in the
> future.  That way we can point authors of new code to that file and explain
why
> they should use the macro.

Sounds reasonable to me. LGTM
Sign in to reply to this message.

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