зеркало из https://github.com/mozilla/moz-skia.git
Fixed bug(s) in batching of rects
https://codereview.appspot.com/6608043/ git-svn-id: http://skia.googlecode.com/svn/trunk@5811 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
7823d9a07f
Коммит
837ec432cc
|
@ -569,7 +569,12 @@ const GrClipData* GrContext::getClip() const {
|
|||
|
||||
void GrContext::setClip(const GrClipData* clipData) {
|
||||
fGpu->setClip(clipData);
|
||||
fDrawState->enableState(GrDrawState::kClip_StateBit);
|
||||
|
||||
if (clipData->fClipStack->isWideOpen()) {
|
||||
fDrawState->disableState(GrDrawState::kClip_StateBit);
|
||||
} else {
|
||||
fDrawState->enableState(GrDrawState::kClip_StateBit);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -190,7 +190,7 @@ void GrInOrderDrawBuffer::drawRect(const GrRect& rect,
|
|||
GeometryPoolState& poolState = fGeoPoolStateStack.back();
|
||||
|
||||
appendToPreviousDraw =
|
||||
kDraw_Cmd != fCmds.back() &&
|
||||
kDraw_Cmd == fCmds.back() &&
|
||||
lastDraw.fVertexBuffer == poolState.fPoolVertexBuffer &&
|
||||
(fCurrQuad * 4 + lastDraw.fStartVertex) == poolState.fPoolStartVertex;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче