aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GrPorterDuffTest.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-09-17 11:21:17 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-17 11:21:17 -0700
commit4078d529e9e199eea13456db7bf3a63a104ab5b9 (patch)
tree5693fc5be9ef4dccb7917b13905d821963b48e4f /tests/GrPorterDuffTest.cpp
parentef4ba3da0b1fe375b9631bcd17c43c645f4aa5a6 (diff)
add a ClassID function to GrBatch
Diffstat (limited to 'tests/GrPorterDuffTest.cpp')
-rw-r--r--tests/GrPorterDuffTest.cpp9
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;