diff options
author | joshualitt <joshualitt@chromium.org> | 2015-09-17 11:21:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-17 11:21:17 -0700 |
commit | 4078d529e9e199eea13456db7bf3a63a104ab5b9 (patch) | |
tree | 5693fc5be9ef4dccb7917b13905d821963b48e4f /tests | |
parent | ef4ba3da0b1fe375b9631bcd17c43c645f4aa5a6 (diff) |
add a ClassID function to GrBatch
BUG=skia:
Review URL: https://codereview.chromium.org/1352813003
Diffstat (limited to 'tests')
-rw-r--r-- | tests/GrPorterDuffTest.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/GrPorterDuffTest.cpp b/tests/GrPorterDuffTest.cpp index 1328272a6a..a61ab5484b 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; |