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

Issue 1473373002: optimize the disable-caching case for SkImage::readPixels (Closed)

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

Description

optimize the disable-caching case for SkImage::readPixels If the client wants no caching, and we haven't already cached it, pass the caller's dst-buffer directly down to the generator, avoiding the (previous) extra memcpy. BUG=skia:4594 Committed: https://skia.googlesource.com/skia/+/6868c3fccf65d297a64919a7cb74f09780c845c3

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -5 lines) Patch
M gm/image.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkImageCacherator.h View 1 chunk +6 lines, -0 lines 2 comments Download
M src/core/SkImageCacherator.cpp View 1 chunk +17 lines, -3 lines 0 comments Download
M src/image/SkImage.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M src/image/SkImage_Generator.cpp View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 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/1473373002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1473373002/20001
5 years ago (2015-11-24 19:21:24 UTC) #2
reed1
5 years ago (2015-11-24 19:21:31 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-24 19:33:55 UTC) #6
f(malita)
lgtm https://codereview.chromium.org/1473373002/diff/20001/src/core/SkImageCacherator.h File src/core/SkImageCacherator.h (right): https://codereview.chromium.org/1473373002/diff/20001/src/core/SkImageCacherator.h#newcode63 src/core/SkImageCacherator.h:63: bool directGeneratePixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, ...
5 years ago (2015-11-24 19:36:08 UTC) #7
reed1
https://codereview.chromium.org/1473373002/diff/20001/src/core/SkImageCacherator.h File src/core/SkImageCacherator.h (right): https://codereview.chromium.org/1473373002/diff/20001/src/core/SkImageCacherator.h#newcode63 src/core/SkImageCacherator.h:63: bool directGeneratePixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, On ...
5 years ago (2015-11-24 19:43:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1473373002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1473373002/20001
5 years ago (2015-11-24 19:44:08 UTC) #10
commit-bot: I haz the power
5 years ago (2015-11-24 19:44:50 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/6868c3fccf65d297a64919a7cb74f09780c845c3

Powered by Google App Engine
This is Rietveld 408576698