Placing 1xN bitmap shader opt behind a flag to delay WebKit rebaselines
git-svn-id: http://skia.googlecode.com/svn/trunk@7298 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
60b0e9de5b
commit
90b17c7485
@ -557,6 +557,7 @@ SkBitmapProcState::ShaderProc32 SkBitmapProcState::chooseShaderProc32() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef SK_IGNORE_1XN_BITMAP_OPT
|
||||
static const unsigned kMask = SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask;
|
||||
|
||||
if (1 == fBitmap->width() && 0 == (fInvType & ~kMask)) {
|
||||
@ -565,6 +566,7 @@ SkBitmapProcState::ShaderProc32 SkBitmapProcState::chooseShaderProc32() {
|
||||
}
|
||||
return S32_D32_constX_shaderproc;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (fAlphaScale < 256) {
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user