• Home
  • Raw
  • Download

Lines Matching refs:state

70     virtual void add(DrawOp* op, const DeferredDisplayState* state, bool opaqueOverBounds) {  in add()  argument
72 mBounds.unionWith(state->mBounds); in add()
74 mOps.add(OpStatePair(op, state)); in add()
81 if (rect.intersects(mOps[i].state->mBounds)) { in intersects()
84 mOps[i].state->mBounds.left, mOps[i].state->mBounds.top, in intersects()
85 mOps[i].state->mBounds.right, mOps[i].state->mBounds.bottom); in intersects()
102 const DeferredDisplayState* state = mOps[i].state; in replay() local
103 renderer.restoreDisplayState(*state); in replay()
112 const Rect& bounds = state->mBounds; in replay()
131 const Rect &r = mOps[i].state->mBounds; in coversBounds()
184 bool canMergeWith(const DrawOp* op, const DeferredDisplayState* state) { in canMergeWith() argument
191 if (intersects(state->mBounds)) return false; in canMergeWith()
193 const DeferredDisplayState* lhs = state; in canMergeWith()
194 const DeferredDisplayState* rhs = mOps[0].state; in canMergeWith()
208 const int newFlags = state->mClipSideFlags; in canMergeWith()
210 const Rect& opBounds = state->mBounds; in canMergeWith()
261 virtual void add(DrawOp* op, const DeferredDisplayState* state, bool opaqueOverBounds) { in add() argument
262 DrawBatch::add(op, state, opaqueOverBounds); in add()
264 const int newClipSideFlags = state->mClipSideFlags; in add()
266 if (newClipSideFlags & kClipSide_Left) mClipRect.left = state->mClip.left; in add()
267 if (newClipSideFlags & kClipSide_Top) mClipRect.top = state->mClip.top; in add()
268 if (newClipSideFlags & kClipSide_Right) mClipRect.right = state->mClip.right; in add()
269 if (newClipSideFlags & kClipSide_Bottom) mClipRect.bottom = state->mClip.bottom; in add()
314 StateOpBatch(const StateOp* op, const DeferredDisplayState* state) : mOp(op), mState(state) {} in StateOpBatch() argument
335 RestoreToCountBatch(const StateOp* op, const DeferredDisplayState* state, int restoreCount) : in RestoreToCountBatch() argument
336 mOp(op), mState(state), mRestoreCount(restoreCount) {} in RestoreToCountBatch()
502 DeferredDisplayState* const state = createState(); in addDrawOp() local
503 if (op->getLocalBounds(state->mBounds)) { in addDrawOp()
504 if (state->mBounds.isEmpty()) { in addDrawOp()
506 tryRecycleState(state); in addDrawOp()
510 state->mBounds.setEmpty(); in addDrawOp()
514 if (renderer.storeDisplayState(*state, getDrawOpDeferFlags())) { in addDrawOp()
515 tryRecycleState(state); in addDrawOp()
521 op->onDefer(renderer, deferInfo, *state); in addDrawOp()
529 state->mClipSideFlags != kClipSide_ConservativeFull && in addDrawOp()
530 deferInfo.opaqueOverBounds && state->mBounds.contains(mBounds)) { in addDrawOp()
539 b->add(op, state, deferInfo.opaqueOverBounds); in addDrawOp()
551 if (state->mBounds.isEmpty()) { in addDrawOp()
554 b->add(op, state, deferInfo.opaqueOverBounds); in addDrawOp()
567 if (!((MergingDrawBatch*) targetBatch)->canMergeWith(op, state)) { in addDrawOp()
590 if (overBatch->intersects(state->mBounds)) { in addDrawOp()
622 targetBatch->add(op, state, deferInfo.opaqueOverBounds); in addDrawOp()
628 DeferredDisplayState* state = createState(); in storeStateOpBarrier() local
629 renderer.storeDisplayState(*state, getStateOpDeferFlags()); in storeStateOpBarrier()
630 mBatches.add(new StateOpBatch(op, state)); in storeStateOpBarrier()
641 DeferredDisplayState* state = createState(); in storeRestoreToCountBarrier() local
642 renderer.storeDisplayState(*state, getStateOpDeferFlags()); in storeRestoreToCountBarrier()
643 mBatches.add(new RestoreToCountBatch(op, state, newSaveCount)); in storeRestoreToCountBarrier()