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

Issue 1266143003: lock pixels in image when bitmap is immutable and not-lazy (Closed)

Created:
5 years, 4 months ago by reed2
Modified:
5 years, 4 months ago
Reviewers:
f(malita), reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

lock pixels in image when bitmap is immutable and not-lazy BUG=skia: Committed: https://skia.googlesource.com/skia/+/02d91d187324cd0f014a78eab1ca09ec71a9b356

Patch Set 1 #

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -32 lines) Patch
M include/core/SkPixelRef.h View 2 chunks +3 lines, -14 lines 0 comments Download
M src/core/SkPixelRef.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M src/image/SkImage.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImagePriv.h View 1 chunk +1 line, -5 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 3 chunks +8 lines, -5 lines 0 comments Download
M src/image/SkSurface_Raster.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 chunk +1 line, -1 line 1 comment Download
M tests/ImageTest.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/SkImageTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1266143003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1266143003/1
5 years, 4 months ago (2015-07-31 02:49:35 UTC) #2
reed2
ptal
5 years, 4 months ago (2015-07-31 02:57:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1266143003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1266143003/20001
5 years, 4 months ago (2015-07-31 02:57:44 UTC) #7
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 4 months ago (2015-07-31 02:57:45 UTC) #8
reed2
5 years, 4 months ago (2015-07-31 02:57:55 UTC) #10
f(malita)
lgtm https://codereview.chromium.org/1266143003/diff/20001/tests/DeferredCanvasTest.cpp File tests/DeferredCanvasTest.cpp (left): https://codereview.chromium.org/1266143003/diff/20001/tests/DeferredCanvasTest.cpp#oldcode67 tests/DeferredCanvasTest.cpp:67: return SkNewImageFromRasterBitmap(fBitmap, &this->props(), kUnlocked_SharedPixelRefMode); Just making sure: this ...
5 years, 4 months ago (2015-07-31 03:12:24 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/02d91d187324cd0f014a78eab1ca09ec71a9b356
5 years, 4 months ago (2015-07-31 03:13:47 UTC) #12
f(malita)
On 2015/07/31 03:12:24, f(malita) wrote: > lgtm > > https://codereview.chromium.org/1266143003/diff/20001/tests/DeferredCanvasTest.cpp > File tests/DeferredCanvasTest.cpp (left): > ...
5 years, 4 months ago (2015-07-31 03:16:18 UTC) #13
reed2
5 years, 4 months ago (2015-07-31 03:32:31 UTC) #14
Message was sent while issue was closed.
On 2015/07/31 03:12:24, f(malita) wrote:
> lgtm
> 
>
https://codereview.chromium.org/1266143003/diff/20001/tests/DeferredCanvasTes...
> File tests/DeferredCanvasTest.cpp (left):
> 
>
https://codereview.chromium.org/1266143003/diff/20001/tests/DeferredCanvasTes...
> tests/DeferredCanvasTest.cpp:67: return SkNewImageFromRasterBitmap(fBitmap,
> &this->props(), kUnlocked_SharedPixelRefMode);
> Just making sure: this is no longer necessary because your prev CL made raster
> snapshots immutable, right? (hopefully there's a test for it)

We don't have an API to query an image for "immutable" -- as they are defined to
be such.

I did add asserts in all (hopefully) constructors that the bitmap is in fact
immutable (at least by the time it is in the image).

Powered by Google App Engine
This is Rietveld 408576698