Merge "Rebuild outline when setBackground is called." into nyc-dev

This commit is contained in:
Chris Craik
2016-03-18 22:29:19 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 1 deletions

View File

@@ -18091,6 +18091,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
mBackgroundSizeChanged = true;
invalidate(true);
invalidateOutline();
}
/**

View File

@@ -198,8 +198,9 @@ void BakedOpRenderer::drawRects(const float* rects, int count, const SkPaint* pa
LOG_ALWAYS_FATAL_IF(mRenderTarget.frameBufferId != 0, "decoration only supported for FBO 0");
// TODO: Currently assume full FBO damage, due to FrameInfoVisualizer::unionDirty.
// Should should scissor safely.
// Should should scissor/set mHasDrawn safely.
mRenderState.scissor().setEnabled(false);
mHasDrawn = true;
Glop glop;
GlopBuilder(mRenderState, mCaches, &glop)
.setRoundRectClipState(nullptr)