Remove some useless declarations

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2270613003

Review-Url: https://codereview.chromium.org/2270613003
This commit is contained in:
sylvestre.ledru 2016-09-01 08:47:44 -07:00 committed by Commit bot
parent 2b44853c53
commit d0cd2ecf31
4 changed files with 1 additions and 5 deletions

View File

@ -361,7 +361,6 @@ bool SkBitmapProcState::chooseScanlineProcs(bool trivialMatrix, bool clampClamp)
#endif
fSampleProc32 = SK_ARM_NEON_WRAP(gSkBitmapProcStateSample32)[index];
index >>= 1; // shift away any opaque/alpha distinction
// our special-case shaderprocs
if (SK_ARM_NEON_WRAP(SI8_opaque_D32_filter_DX) == fSampleProc32 && clampClamp) {

View File

@ -242,9 +242,8 @@ static void F1(DFData* curr, int width) {
static void F2(DFData* curr, int width) {
// right
DFData* check = curr + 1;
float distSq = check->fDistSq;
SkPoint distVec = check->fDistVector;
distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f;
float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f;
if (distSq < curr->fDistSq) {
distVec.fX += 1.0f;
curr->fDistSq = distSq;

View File

@ -1933,7 +1933,6 @@ void SkDraw::drawVertices(SkCanvas::VertexMode vmode, int count,
if (nullptr == textures) {
// just colors (no texture)
p.setShader(triShader);
shader = p.getShader();
} else {
// colors * texture
SkASSERT(shader);

View File

@ -354,7 +354,6 @@ void SuperBlitter::blitRect(int x, int y, int width, int height) {
xleft = xrite - xleft;
SkASSERT(xleft <= SCALE);
SkASSERT(xleft > 0);
xrite = 0;
fRealBlitter->blitV(ileft + fLeft, start_y, count,
coverage_to_exact_alpha(xleft));
} else {