Lighting filter uses input on raster path
BUG= R=senorblanco@chromium.org Author: sugoi@chromium.org Review URL: https://codereview.chromium.org/35703002 git-svn-id: http://skia.googlecode.com/svn/trunk@11918 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
3f80dd5f01
commit
a8aef8bf04
@ -910,11 +910,17 @@ void SkDiffuseLightingImageFilter::flatten(SkFlattenableWriteBuffer& buffer) con
|
||||
buffer.writeScalar(fKD);
|
||||
}
|
||||
|
||||
bool SkDiffuseLightingImageFilter::onFilterImage(Proxy*,
|
||||
const SkBitmap& src,
|
||||
bool SkDiffuseLightingImageFilter::onFilterImage(Proxy* proxy,
|
||||
const SkBitmap& source,
|
||||
const SkMatrix& ctm,
|
||||
SkBitmap* dst,
|
||||
SkIPoint* offset) {
|
||||
SkImageFilter* input = getInput(0);
|
||||
SkBitmap src = source;
|
||||
if (input && !input->filterImage(proxy, source, ctm, &src, offset)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (src.config() != SkBitmap::kARGB_8888_Config) {
|
||||
return false;
|
||||
}
|
||||
@ -988,11 +994,17 @@ void SkSpecularLightingImageFilter::flatten(SkFlattenableWriteBuffer& buffer) co
|
||||
buffer.writeScalar(fShininess);
|
||||
}
|
||||
|
||||
bool SkSpecularLightingImageFilter::onFilterImage(Proxy*,
|
||||
const SkBitmap& src,
|
||||
bool SkSpecularLightingImageFilter::onFilterImage(Proxy* proxy,
|
||||
const SkBitmap& source,
|
||||
const SkMatrix& ctm,
|
||||
SkBitmap* dst,
|
||||
SkIPoint* offset) {
|
||||
SkImageFilter* input = getInput(0);
|
||||
SkBitmap src = source;
|
||||
if (input && !input->filterImage(proxy, source, ctm, &src, offset)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (src.config() != SkBitmap::kARGB_8888_Config) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user