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

Unified Diff: gm/rrects.cpp

Issue 1562093002: Remove work from constructors to facilitate debugging. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use valid width and height. Created 4 years, 11 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 | « gm/composeshader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « gm/composeshader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698