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

Issue 1256993002: Make peekPixels() usable with raster surface snapshots (Closed)

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

Description

Make peekPixels() usable with raster surface snapshots SkSurface_Raster snapshots do not lock their backing bitmaps when the pixel ref is shared - they only lock on deep-copy. But since for raster surfaces the pixels are always in memory, I think it would be OK to also lock in the former case. This allows for optimized (zero-copy) reads of raster surface snapshot data. R=reed@google.com Committed: https://skia.googlesource.com/skia/+/9a5d1ab54d52a912bb3ac9f74ee01bba079639e5

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -15 lines) Patch
M include/core/SkPixmap.h View 3 chunks +3 lines, -3 lines 0 comments Download
M src/image/SkImage.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImagePriv.h View 1 2 chunks +14 lines, -4 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 3 chunks +8 lines, -4 lines 0 comments Download
M src/image/SkSurface_Raster.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M tests/SkImageTest.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
f(malita)
WDYT about something like this? It solves a webgl regression I've been chasing for the ...
5 years, 5 months ago (2015-07-26 04:23:47 UTC) #1
reed1
lgtm - perhaps we fix up the other callers so we don't have to have ...
5 years, 4 months ago (2015-07-27 16:07:56 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256993002/20001
5 years, 4 months ago (2015-07-27 16:28:51 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-07-27 16:37:23 UTC) #6
f(malita)
> > - perhaps we fix up the other callers so we don't have to ...
5 years, 4 months ago (2015-07-27 16:53:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256993002/20001
5 years, 4 months ago (2015-07-27 17:26:51 UTC) #10
commit-bot: I haz the power
5 years, 4 months ago (2015-07-27 17:27:32 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/9a5d1ab54d52a912bb3ac9f74ee01bba079639e5

Powered by Google App Engine
This is Rietveld 408576698