Searched refs:drawOp (Results 1 – 2 of 2) sorted by relevance
144 void randomizeDrawOp (de::Random& rnd, DrawPrimitiveOp& drawOp) in randomizeDrawOp() argument160 drawOp.type = (PrimitiveType)rnd.getInt(0, PRIMITIVETYPE_LAST-1); in randomizeDrawOp()161 drawOp.count = rnd.getInt(minPrimitives, maxPrimitives); in randomizeDrawOp()162 drawOp.blend = (BlendMode)rnd.getInt(0, BLENDMODE_LAST-1); in randomizeDrawOp()163 drawOp.depth = (DepthMode)rnd.getInt(0, DEPTHMODE_LAST-1); in randomizeDrawOp()164 drawOp.stencil = (StencilMode)rnd.getInt(0, STENCILMODE_LAST-1); in randomizeDrawOp()165 drawOp.stencilRef = rnd.getInt(minStencilRef, maxStencilRef); in randomizeDrawOp()167 if (drawOp.type == PRIMITIVETYPE_TRIANGLE) in randomizeDrawOp()169 drawOp.positions.resize(drawOp.count*3); in randomizeDrawOp()170 drawOp.colors.resize(drawOp.count*3); in randomizeDrawOp()[all …]
250 DrawType drawOp = peek_op_and_size(&fWriter, -offset, &opSize); in fillRestoreOffsetPlaceholdersForCurrentStackLevel() local251 SkASSERT(SAVE_LAYER_SAVEFLAGS_DEPRECATED != drawOp); in fillRestoreOffsetPlaceholdersForCurrentStackLevel()252 SkASSERT(SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016 != drawOp); in fillRestoreOffsetPlaceholdersForCurrentStackLevel()253 SkASSERT(SAVE == drawOp || SAVE_LAYER_SAVELAYERREC == drawOp); in fillRestoreOffsetPlaceholdersForCurrentStackLevel()