Index: tests/GrPorterDuffTest.cpp |
diff --git a/tests/GrPorterDuffTest.cpp b/tests/GrPorterDuffTest.cpp |
index 1328272a6a5e87fb749b5315fd0ec9b66bda4698..a61ab5484ba401a6027bbc6aa3089d26ffed9527 100644 |
--- a/tests/GrPorterDuffTest.cpp |
+++ b/tests/GrPorterDuffTest.cpp |
@@ -1093,7 +1093,13 @@ static void test_color_opaque_no_coverage(skiatest::Reporter* reporter, const Gr |
} |
static void test_lcd_coverage_fallback_case(skiatest::Reporter* reporter, const GrCaps& caps) { |
- class : public GrVertexBatch { |
+ class TestLCDCoverageBatch: public GrVertexBatch { |
+ public: |
+ DEFINE_BATCH_CLASS_ID |
+ |
+ TestLCDCoverageBatch() : INHERITED(ClassID()) {} |
+ |
+ private: |
void getInvariantOutputColor(GrInitInvariantOutput* out) const override { |
out->setKnownFourComponents(GrColorPackRGBA(123, 45, 67, 221)); |
} |
@@ -1108,6 +1114,7 @@ static void test_lcd_coverage_fallback_case(skiatest::Reporter* reporter, const |
bool onCombineIfPossible(GrBatch*, const GrCaps&) override { return false; } |
void onPrepareDraws(Target*) override {}; |
+ typedef GrVertexBatch INHERITED; |
} testLCDCoverageBatch; |
GrProcOptInfo colorPOI, covPOI; |