| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef skiagm_DEFINED | 8 #ifndef skiagm_DEFINED |
| 9 #define skiagm_DEFINED | 9 #define skiagm_DEFINED |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 void setMode(Mode mode) { fMode = mode; } | 61 void setMode(Mode mode) { fMode = mode; } |
| 62 Mode getMode() const { return fMode; } | 62 Mode getMode() const { return fMode; } |
| 63 | 63 |
| 64 void draw(SkCanvas*); | 64 void draw(SkCanvas*); |
| 65 void drawBackground(SkCanvas*); | 65 void drawBackground(SkCanvas*); |
| 66 void drawContent(SkCanvas*); | 66 void drawContent(SkCanvas*); |
| 67 | 67 |
| 68 SkISize getISize() { return this->onISize(); } | 68 SkISize getISize() { return this->onISize(); } |
| 69 const char* shortName(); | 69 const char* getName(); |
| 70 | 70 |
| 71 uint32_t getFlags() const { | 71 uint32_t getFlags() const { |
| 72 return this->onGetFlags(); | 72 return this->onGetFlags(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 SkScalar width() { | 75 SkScalar width() { |
| 76 return SkIntToScalar(this->getISize().width()); | 76 return SkIntToScalar(this->getISize().width()); |
| 77 } | 77 } |
| 78 SkScalar height() { | 78 SkScalar height() { |
| 79 return SkIntToScalar(this->getISize().height()); | 79 return SkIntToScalar(this->getISize().height()); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 SkColor fBGColor; | 131 SkColor fBGColor; |
| 132 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp | 132 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp |
| 133 bool fHaveCalledOnceBeforeDraw; | 133 bool fHaveCalledOnceBeforeDraw; |
| 134 SkMatrix fStarterMatrix; | 134 SkMatrix fStarterMatrix; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 typedef SkTRegistry<GM*(*)(void*)> GMRegistry; | 137 typedef SkTRegistry<GM*(*)(void*)> GMRegistry; |
| 138 } | 138 } |
| 139 | 139 |
| 140 #endif | 140 #endif |
| OLD | NEW |