Wire up testcreate function for GrDrawAtlasBatch

BUG=skia:

Review URL: https://codereview.chromium.org/1285593002
This commit is contained in:
joshualitt 2015-08-10 08:02:58 -07:00 committed by Commit bot
parent c5b7df48b2
commit d22f37cda7
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ BATCH_TEST_EXTERN(DefaultPathBatch);
BATCH_TEST_EXTERN(CircleBatch);
BATCH_TEST_EXTERN(DIEllipseBatch);
BATCH_TEST_EXTERN(EllipseBatch);
BATCH_TEST_EXTERN(GrDrawAtlasBatch);
BATCH_TEST_EXTERN(GrStrokeRectBatch);
BATCH_TEST_EXTERN(RRectBatch);
BATCH_TEST_EXTERN(TesselatingPathBatch);
@ -38,6 +39,7 @@ static BatchTestFunc gTestBatches[] = {
BATCH_TEST_ENTRY(CircleBatch),
BATCH_TEST_ENTRY(DIEllipseBatch),
BATCH_TEST_ENTRY(EllipseBatch),
BATCH_TEST_ENTRY(GrDrawAtlasBatch),
BATCH_TEST_ENTRY(GrStrokeRectBatch),
BATCH_TEST_ENTRY(RRectBatch),
BATCH_TEST_ENTRY(TesselatingPathBatch),

View File

@ -19,7 +19,8 @@ void GrDrawAtlasBatch::initBatchTracker(const GrPipelineInfo& init) {
// setup batch properties
fColorIgnored = !init.readsColor();
fColor = fGeoData[0].fColor;
SkASSERT(init.readsLocalCoords());
// We'd like to assert this, but we can't because of GLPrograms test
//SkASSERT(init.readsLocalCoords());
fCoverageIgnored = !init.readsCoverage();
}