Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(782)

Unified Diff: gm/drawfilter.cpp

Issue 1079813002: use anon namespace to avoid (silent) collisions between local test classes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/DrawFilterTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/drawfilter.cpp
diff --git a/gm/drawfilter.cpp b/gm/drawfilter.cpp
index 40323c9ac8ad7975e3f602c0f0acbd06e8809f9b..8c29f07b0268e8a2d34f6f9c34f097e952ca1806 100644
--- a/gm/drawfilter.cpp
+++ b/gm/drawfilter.cpp
@@ -19,6 +19,7 @@
* the second red and sharp.
*/
+namespace {
class TestFilter : public SkDrawFilter {
public:
bool filter(SkPaint* p, Type) override {
@@ -27,6 +28,7 @@ public:
return true;
}
};
+}
class DrawFilterGM : public skiagm::GM {
SkAutoTUnref<SkMaskFilter> fBlur;
« no previous file with comments | « no previous file | tests/DrawFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698