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

Issue 143073008: add installPixels (Closed)

Created:
6 years, 11 months ago by reed1
Modified:
6 years, 10 months ago
Reviewers:
hal.canary, scroggo
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 1

Patch Set 2 : sample impl #

Total comments: 3

Patch Set 3 : new signature: PixelRefFactory to go along with installPixels #

Total comments: 2

Patch Set 4 : use new allocPixels in the core, document that it will be locked #

Patch Set 5 : update dox for SkPixelRefFactory #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -51 lines) Patch
M include/core/SkBitmap.h View 1 2 3 3 chunks +31 lines, -1 line 0 comments Download
M include/core/SkMallocPixelRef.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M include/core/SkPixelRef.h View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 2 3 1 chunk +55 lines, -1 line 0 comments Download
M src/core/SkBitmapDevice.cpp View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M src/core/SkMallocPixelRef.cpp View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/core/SkOrderedReadBuffer.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/SkAlphaThresholdFilter.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/SkBicubicImageFilter.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/SkBlurImageFilter.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/SkPerlinNoiseShader.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M src/effects/SkTableColorFilter.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/gpu/GrSurface.cpp View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M src/gpu/SkGrPixelRef.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/images/SkMovie_gif.cpp View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M src/lazy/SkDiscardablePixelRef.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 1 chunk +5 lines, -7 lines 0 comments Download
M src/utils/SkPDFRasterizer.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/utils/mac/SkCreateCGImageRef.cpp View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
reed1
6 years, 11 months ago (2014-01-23 21:30:33 UTC) #1
reed1
just previewing API before making impl
6 years, 11 months ago (2014-01-23 21:30:49 UTC) #2
hal.canary
https://codereview.chromium.org/143073008/diff/1/include/core/SkBitmap.h File include/core/SkBitmap.h (right): https://codereview.chromium.org/143073008/diff/1/include/core/SkBitmap.h#newcode268 include/core/SkBitmap.h:268: void* context); bool installPixels(const SkImageInfo&, void* pixels, size_t rowBytes, ...
6 years, 11 months ago (2014-01-23 21:39:10 UTC) #3
reed1
ptal
6 years, 11 months ago (2014-01-23 21:39:13 UTC) #4
scroggo
https://codereview.chromium.org/143073008/diff/40001/include/core/SkBitmap.h File include/core/SkBitmap.h (right): https://codereview.chromium.org/143073008/diff/40001/include/core/SkBitmap.h#newcode257 include/core/SkBitmap.h:257: bool allocPixels(const SkImageInfo&, SkColorTable* ctable = NULL); I assume ...
6 years, 11 months ago (2014-01-23 21:53:01 UTC) #5
hal.canary
https://codereview.chromium.org/143073008/diff/40001/include/core/SkBitmap.h File include/core/SkBitmap.h (right): https://codereview.chromium.org/143073008/diff/40001/include/core/SkBitmap.h#newcode257 include/core/SkBitmap.h:257: bool allocPixels(const SkImageInfo&, SkColorTable* ctable = NULL); On 2014/01/23 ...
6 years, 11 months ago (2014-01-23 22:05:24 UTC) #6
hal.canary
We should modify the tests in tests/MallocPixelRefTest.cpp to call these functions.
6 years, 11 months ago (2014-01-23 22:27:50 UTC) #7
reed1
ptal https://codereview.chromium.org/143073008/diff/40001/include/core/SkBitmap.h File include/core/SkBitmap.h (right): https://codereview.chromium.org/143073008/diff/40001/include/core/SkBitmap.h#newcode257 include/core/SkBitmap.h:257: bool allocPixels(const SkImageInfo&, SkColorTable* ctable = NULL); On ...
6 years, 11 months ago (2014-01-24 14:54:48 UTC) #8
scroggo
1gtm, besides the pr, which needs to be unref'ed. https://codereview.chromium.org/143073008/diff/140001/src/core/SkBitmap.cpp File src/core/SkBitmap.cpp (right): https://codereview.chromium.org/143073008/diff/140001/src/core/SkBitmap.cpp#newcode523 src/core/SkBitmap.cpp:523: ...
6 years, 11 months ago (2014-01-24 16:18:58 UTC) #9
hal.canary
https://codereview.chromium.org/143073008/diff/140001/src/core/SkBitmap.cpp File src/core/SkBitmap.cpp (right): https://codereview.chromium.org/143073008/diff/140001/src/core/SkBitmap.cpp#newcode523 src/core/SkBitmap.cpp:523: return this->setPixelRef(pr); On 2014/01/24 16:18:59, scroggo wrote: > pr ...
6 years, 11 months ago (2014-01-24 16:46:50 UTC) #10
reed1
6 years, 11 months ago (2014-01-24 17:16:02 UTC) #11
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 11 months ago (2014-01-24 17:18:05 UTC) #12
hal.canary
lgtm
6 years, 11 months ago (2014-01-24 18:51:45 UTC) #13
reed1
6 years, 11 months ago (2014-01-24 18:53:56 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 manually as r13174 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698