Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Issue 13226002: Fixed bug with SkImage leaving canvas backing store in an immutable state after destroy. (Closed)

Created:
7 years, 9 months ago by Justin Novosad
Modified:
7 years, 8 months ago
Reviewers:
mikerreed, bsalomon
CC:
skia-review_googlegroups.com, reed1
Visibility:
Public.

Description

Fixed bug with SkImage leaving canvas backing store in an immutable state after destroy. Added unit test that verifies that surface backing is writable after creating and destroying an image. Committed: https://code.google.com/p/skia/source/detail?r=8512

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -13 lines) Patch
M src/image/SkImage_Raster.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M tests/SurfaceTest.cpp View 1 2 3 4 5 2 chunks +23 lines, -12 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Justin Novosad
7 years, 9 months ago (2013-03-28 20:40:35 UTC) #1
reed1
errrrrrr, lets discuss to see if we can avoid this sort of trickery
7 years, 9 months ago (2013-03-28 21:35:09 UTC) #2
Justin Novosad
New patch. Got rid of the trickery. I reduced this patch to the minimum that ...
7 years, 8 months ago (2013-04-03 14:07:58 UTC) #3
Justin Novosad
https://codereview.chromium.org/13226002/diff/10001/src/image/SkImage_Raster.cpp File src/image/SkImage_Raster.cpp (left): https://codereview.chromium.org/13226002/diff/10001/src/image/SkImage_Raster.cpp#oldcode103 src/image/SkImage_Raster.cpp:103: fBitmap.setImmutable(); Problem here is that the pixel ref is ...
7 years, 8 months ago (2013-04-03 14:10:54 UTC) #4
bsalomon
lgtm https://codereview.chromium.org/13226002/diff/10001/tests/SurfaceTest.cpp File tests/SurfaceTest.cpp (right): https://codereview.chromium.org/13226002/diff/10001/tests/SurfaceTest.cpp#newcode150 tests/SurfaceTest.cpp:150: static void TestSurface(skiatest::Reporter* reporter) { Just noting that ...
7 years, 8 months ago (2013-04-03 14:13:43 UTC) #5
Justin Novosad
Are you implying to get rid of DEFINE_TESTCLASS, and just have DEFINE_GPUTESTCLASS? We would no ...
7 years, 8 months ago (2013-04-03 14:17:16 UTC) #6
bsalomon
On 2013/04/03 14:17:16, junov wrote: > Are you implying to get rid of DEFINE_TESTCLASS, and ...
7 years, 8 months ago (2013-04-03 14:22:40 UTC) #7
Justin Novosad
On 2013/04/03 14:22:40, bsalomon wrote: > On 2013/04/03 14:17:16, junov wrote: > > Are you ...
7 years, 8 months ago (2013-04-03 14:26:49 UTC) #8
Justin Novosad
Patch. https://codereview.chromium.org/13226002/diff/17001/tests/SurfaceTest.cpp File tests/SurfaceTest.cpp (right): https://codereview.chromium.org/13226002/diff/17001/tests/SurfaceTest.cpp#newcode9 tests/SurfaceTest.cpp:9: #include "GrContextFactory.h" This is OK, even when SK_SUPPORT_GPU ...
7 years, 8 months ago (2013-04-03 14:31:26 UTC) #9
bsalomon
https://codereview.chromium.org/13226002/diff/17001/tests/SurfaceTest.cpp File tests/SurfaceTest.cpp (right): https://codereview.chromium.org/13226002/diff/17001/tests/SurfaceTest.cpp#newcode9 tests/SurfaceTest.cpp:9: #include "GrContextFactory.h" On 2013/04/03 14:31:26, junov wrote: > This ...
7 years, 8 months ago (2013-04-03 14:35:47 UTC) #10
Justin Novosad
> > Actually, no, the #include needs to be guarded. We could consider changing the ...
7 years, 8 months ago (2013-04-03 14:58:59 UTC) #11
Justin Novosad
Patch.
7 years, 8 months ago (2013-04-03 14:59:17 UTC) #12
bsalomon
lgtm
7 years, 8 months ago (2013-04-03 15:00:18 UTC) #13
mikerreed
7 years, 8 months ago (2013-04-07 22:33:40 UTC) #14
Message was sent while issue was closed.
Does this lose the optimization we had before, where this image would be seen as
immutable during picture record and caching for the gpu?

Perhaps we can find a different fix for the surface/canvas that doesn't remove
the optimization for the image...

Powered by Google App Engine
This is Rietveld 408576698