Wire up testcreate function for GrDrawAtlasBatch
BUG=skia: Review URL: https://codereview.chromium.org/1285593002
This commit is contained in:
parent
c5b7df48b2
commit
d22f37cda7
@ -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),
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user