Chromium Code Reviews| Index: gm/rrects.cpp |
| diff --git a/gm/rrects.cpp b/gm/rrects.cpp |
| index fbe7ad183665c7f3277434226114e5e36e6684f6..938d4706dc26e4c3c291e6ed30233a07a9b1965f 100644 |
| --- a/gm/rrects.cpp |
| +++ b/gm/rrects.cpp |
| @@ -26,12 +26,15 @@ public: |
| kAA_Clip_Type, |
| kEffect_Type, |
| }; |
| - RRectGM(Type type) : fType(type) { |
| + RRectGM(Type type) : fType(type) { } |
| + |
| +protected: |
| + |
| + void onOnceBeforeDraw() override { |
| this->setBGColor(sk_tool_utils::color_to_565(0xFFDDDDDD)); |
| this->setUpRRects(); |
| } |
| -protected: |
| SkString onShortName() override { |
| SkString name("rrect"); |
| switch (fType) { |