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

Issue 2355703003: Avoid bitmap copy in SkMakeBitmapShader, fix hwui unit test (Closed)

Created:
4 years, 3 months ago by msarett
Modified:
4 years, 3 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Avoid bitmap copy in SkMakeBitmapShader, fix hwui unit test BUG:31594626 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2355703003

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
M src/image/SkImageShader.cpp View 2 chunks +2 lines, -2 lines 2 comments Download
M tests/ShaderTest.cpp View 1 chunk +21 lines, -0 lines 1 comment Download

Depends on Patchset:

Messages

Total messages: 6 (3 generated)
msarett
I'm not sure what the correct fix is for this... Let's discuss.
4 years, 3 months ago (2016-09-20 13:18:43 UTC) #3
reed1
https://codereview.chromium.org/2355703003/diff/1/src/image/SkImageShader.cpp File src/image/SkImageShader.cpp (right): https://codereview.chromium.org/2355703003/diff/1/src/image/SkImageShader.cpp#newcode100 src/image/SkImageShader.cpp:100: #if 1 what was wrong with the FRAMEWORK flag? ...
4 years, 3 months ago (2016-09-20 17:19:06 UTC) #5
msarett
4 years, 3 months ago (2016-09-20 17:20:22 UTC) #6
Message was sent while issue was closed.
On 2016/09/20 17:19:06, reed1 wrote:
> https://codereview.chromium.org/2355703003/diff/1/src/image/SkImageShader.cpp
> File src/image/SkImageShader.cpp (right):
> 
>
https://codereview.chromium.org/2355703003/diff/1/src/image/SkImageShader.cpp...
> src/image/SkImageShader.cpp:100: #if 1
> what was wrong with the FRAMEWORK flag?
> 
>
https://codereview.chromium.org/2355703003/diff/1/src/image/SkImageShader.cpp...
> src/image/SkImageShader.cpp:247: return
> SkImageShader::Make(SkMakeImageFromRasterBitmap(src, kNever_SkCopyPixelsMode,
> allocator),
> Can the caller make the decision to pass in kNever, instead of hard-coding it?
> 
> https://codereview.chromium.org/2355703003/diff/1/tests/ShaderTest.cpp
> File tests/ShaderTest.cpp (right):
> 
>
https://codereview.chromium.org/2355703003/diff/1/tests/ShaderTest.cpp#newcode69
> tests/ShaderTest.cpp:69: sk_sp<SkShader> s =
> SkShader::MakeBitmapShader(origBitmap, SkShader::kClamp_TileMode,
> Tests are allowed to call private APIs, e.g. SkImagePriv.h

Sorry this is closed, was just experimenting to replicate the framework failures
and see how to fix them.  This is fixed by calling SkMakeBitmapSahder() from the
framework.

Powered by Google App Engine
This is Rietveld 408576698