Index: tests/PixelRefTest.cpp |
diff --git a/tests/PixelRefTest.cpp b/tests/PixelRefTest.cpp |
index d7fe9f47aad51a6d0f77e1986b1289d68ef458bd..1e9bbe7a3bb7c4a2ac071d5159cd1c97eee57851 100644 |
--- a/tests/PixelRefTest.cpp |
+++ b/tests/PixelRefTest.cpp |
@@ -37,18 +37,14 @@ static void test_info(skiatest::Reporter* reporter) { |
} |
} |
-namespace { |
- |
class TestListener : public SkPixelRef::GenIDChangeListener { |
public: |
explicit TestListener(int* ptr) : fPtr(ptr) {} |
- void onChange() SK_OVERRIDE { (*fPtr)++; } |
+ virtual void onChange() SK_OVERRIDE { (*fPtr)++; } |
private: |
int* fPtr; |
}; |
-} // namespace |
- |
DEF_TEST(PixelRef_GenIDChange, r) { |
SkImageInfo info = SkImageInfo::MakeN32Premul(10, 10); |