Lines Matching refs:IndexBufferOption
304 IndexBufferOption CalcIndexBufferOption(GrAAType aa, int numQuads) {
306 return IndexBufferOption::kPictureFramed;
308 return IndexBufferOption::kIndexedRects;
310 return IndexBufferOption::kTriStrips;
465 IndexBufferOption indexBufferOption) {
469 case IndexBufferOption::kPictureFramed: return resourceProvider->refAAQuadIndexBuffer();
470 case IndexBufferOption::kIndexedRects: return resourceProvider->refNonAAQuadIndexBuffer();
471 case IndexBufferOption::kTriStrips: // fall through
476 int QuadLimit(IndexBufferOption option) {
478 case IndexBufferOption::kPictureFramed: return GrResourceProvider::MaxNumAAQuads();
479 case IndexBufferOption::kIndexedRects: return GrResourceProvider::MaxNumNonAAQuads();
480 case IndexBufferOption::kTriStrips: return SK_MaxS32; // not limited by an indexBuffer
488 if (spec.indexBufferOption() == IndexBufferOption::kTriStrips) {
495 SkASSERT(spec.indexBufferOption() == IndexBufferOption::kPictureFramed ||
496 spec.indexBufferOption() == IndexBufferOption::kIndexedRects);
500 if (spec.indexBufferOption() == IndexBufferOption::kPictureFramed) {