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

Issue 1647153002: Add SkAndroidCodec::getPixels (Closed)

Created:
4 years, 10 months ago by scroggo
Modified:
4 years, 10 months ago
Reviewers:
msarett, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@opaque
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add SkAndroidCodec::getPixels This is a synonym for the version of getAndroidPixels that accepts only three parameters (i.e. no AndroidOptions). It is very similar to SkCodec::getPixels, so I think the motivation for naming the version with options differently does not apply here. Add comments to the header describing defaults. Update the test to use a template, and delete a lot of redundant code. Rename a variable to stop shadowing another variable. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1647153002 Committed: https://skia.googlesource.com/skia/+/7b5e5536a18123f568afca99dc8f89019eab2c77

Patch Set 1 #

Total comments: 4

Patch Set 2 : Specify defaults #

Patch Set 3 : Preemptive rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -81 lines) Patch
M include/codec/SkAndroidCodec.h View 1 6 chunks +16 lines, -2 lines 0 comments Download
M tests/CodexTest.cpp View 8 chunks +14 lines, -79 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
scroggo
4 years, 10 months ago (2016-01-29 15:10:55 UTC) #4
msarett
lgtm Great! https://codereview.chromium.org/1647153002/diff/1/include/codec/SkAndroidCodec.h File include/codec/SkAndroidCodec.h (right): https://codereview.chromium.org/1647153002/diff/1/include/codec/SkAndroidCodec.h#newcode227 include/codec/SkAndroidCodec.h:227: SkCodec::Result getAndroidPixels(const SkImageInfo& info, void* pixels, size_t ...
4 years, 10 months ago (2016-01-29 15:16:39 UTC) #5
reed1
https://codereview.chromium.org/1647153002/diff/1/include/codec/SkAndroidCodec.h File include/codec/SkAndroidCodec.h (right): https://codereview.chromium.org/1647153002/diff/1/include/codec/SkAndroidCodec.h#newcode222 include/codec/SkAndroidCodec.h:222: * Simplified version of getAndroidPixels() where we supply the ...
4 years, 10 months ago (2016-01-29 17:05:34 UTC) #6
scroggo
https://codereview.chromium.org/1647153002/diff/1/include/codec/SkAndroidCodec.h File include/codec/SkAndroidCodec.h (right): https://codereview.chromium.org/1647153002/diff/1/include/codec/SkAndroidCodec.h#newcode222 include/codec/SkAndroidCodec.h:222: * Simplified version of getAndroidPixels() where we supply the ...
4 years, 10 months ago (2016-01-29 19:50:34 UTC) #8
reed1
I have no opinion lgtm
4 years, 10 months ago (2016-01-29 19:53:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647153002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647153002/40001
4 years, 10 months ago (2016-02-04 13:48:16 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-02-04 14:14:26 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/7b5e5536a18123f568afca99dc8f89019eab2c77

Powered by Google App Engine
This is Rietveld 408576698