epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
commit-bot@chromium.org | c3bd8af | 2014-02-13 17:14:46 +0000 | [diff] [blame] | 7 | |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 8 | #ifndef skiagm_DEFINED |
| 9 | #define skiagm_DEFINED |
| 10 | |
Hal Canary | 22be4c4 | 2018-06-12 12:37:31 -0400 | [diff] [blame] | 11 | #include "../tools/Registry.h" |
epoger@google.com | d4af56c | 2011-07-25 16:27:59 +0000 | [diff] [blame] | 12 | #include "SkBitmap.h" |
reed@android.com | dd0ac28 | 2009-06-20 02:38:16 +0000 | [diff] [blame] | 13 | #include "SkCanvas.h" |
Hal Canary | 22be4c4 | 2018-06-12 12:37:31 -0400 | [diff] [blame] | 14 | #include "SkClipOpPriv.h" |
| 15 | #include "SkMacros.h" |
reed@android.com | dd0ac28 | 2009-06-20 02:38:16 +0000 | [diff] [blame] | 16 | #include "SkPaint.h" |
reed@android.com | dd0ac28 | 2009-06-20 02:38:16 +0000 | [diff] [blame] | 17 | #include "SkSize.h" |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 18 | #include "SkString.h" |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 19 | |
reed | 76113a9 | 2015-02-02 12:55:02 -0800 | [diff] [blame] | 20 | class SkAnimTimer; |
Mike Reed | 88f5671 | 2019-02-04 16:50:10 -0500 | [diff] [blame] | 21 | class SkMetaData; |
bsalomon | 4ee6bd8 | 2015-05-27 13:23:23 -0700 | [diff] [blame] | 22 | struct GrContextOptions; |
mtklein@google.com | 62b50b7 | 2013-09-16 20:42:15 +0000 | [diff] [blame] | 23 | |
reed@google.com | 4117a24 | 2012-10-30 20:26:58 +0000 | [diff] [blame] | 24 | #define DEF_GM(code) \ |
sugoi@google.com | 0f0d9b7 | 2013-02-27 15:41:12 +0000 | [diff] [blame] | 25 | static skiagm::GM* SK_MACRO_APPEND_LINE(F_)(void*) { code; } \ |
reed@google.com | 4117a24 | 2012-10-30 20:26:58 +0000 | [diff] [blame] | 26 | static skiagm::GMRegistry SK_MACRO_APPEND_LINE(R_)(SK_MACRO_APPEND_LINE(F_)); |
| 27 | |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 28 | // A Simple GM is a rendering test that does not store state between rendering calls or make use of |
| 29 | // the onOnceBeforeDraw() virtual; it consists of: |
halcanary | 2a24338 | 2015-09-09 08:16:41 -0700 | [diff] [blame] | 30 | // * A name. |
| 31 | // * Prefered width and height. |
| 32 | // * Optionally, a background color (default is white). |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 33 | // * A standalone function pointer that implements its onDraw method. |
halcanary | 2a24338 | 2015-09-09 08:16:41 -0700 | [diff] [blame] | 34 | #define DEF_SIMPLE_GM(NAME, CANVAS, W, H) \ |
| 35 | DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, SK_ColorWHITE, SkString(#NAME)) |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 36 | #define DEF_SIMPLE_GM_BG(NAME, CANVAS, W, H, BGCOLOR) \ |
halcanary | 2a24338 | 2015-09-09 08:16:41 -0700 | [diff] [blame] | 37 | DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, BGCOLOR, SkString(#NAME)) |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 38 | #define DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, BGCOLOR, NAME_STR) \ |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 39 | static void SK_MACRO_CONCAT(NAME,_GM_inner)(SkCanvas*); \ |
| 40 | DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS,, W, H, BGCOLOR, NAME_STR) { \ |
| 41 | SK_MACRO_CONCAT(NAME,_GM_inner)(CANVAS); \ |
| 42 | return skiagm::DrawResult::kOk; \ |
| 43 | } \ |
| 44 | void SK_MACRO_CONCAT(NAME,_GM_inner)(SkCanvas* CANVAS) |
| 45 | |
| 46 | #define DEF_SIMPLE_GM_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H) \ |
| 47 | DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, SK_ColorWHITE, SkString(#NAME)) |
| 48 | #define DEF_SIMPLE_GM_BG_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, BGCOLOR) \ |
| 49 | DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, BGCOLOR, SkString(#NAME)) |
| 50 | #define DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, BGCOLOR, NAME_STR) \ |
| 51 | static skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)(SkCanvas*, SkString*); \ |
| 52 | DEF_GM(return new skiagm::SimpleGM(BGCOLOR, NAME_STR, {W,H}, SK_MACRO_CONCAT(NAME,_GM));) \ |
| 53 | skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)(SkCanvas* CANVAS, SkString* ERR_MSG) |
| 54 | |
halcanary | 30b83d4 | 2014-10-26 05:23:53 -0700 | [diff] [blame] | 55 | |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 56 | // A Simple GpuGM makes direct GPU calls. Its onDraw hook that includes GPU objects as params, and |
| 57 | // is only invoked on GPU configs. Non-GPU configs automatically draw a GPU-only message and abort. |
| 58 | #define DEF_SIMPLE_GPU_GM(NAME, GR_CONTEXT, RENDER_TARGET_CONTEXT, CANVAS, W, H) \ |
| 59 | DEF_SIMPLE_GPU_GM_BG(NAME, GR_CONTEXT, RENDER_TARGET_CONTEXT, CANVAS, W, H, SK_ColorWHITE) |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 60 | #define DEF_SIMPLE_GPU_GM_BG(NAME, GR_CONTEXT, RENDER_TARGET_CONTEXT, CANVAS, W, H, BGCOLOR) \ |
| 61 | static void SK_MACRO_CONCAT(NAME,_GM_inner)(GrContext*, GrRenderTargetContext*, SkCanvas*); \ |
| 62 | DEF_SIMPLE_GPU_GM_BG_CAN_FAIL(NAME, GR_CONTEXT, RENDER_TARGET_CONTEXT, CANVAS,, W, H, \ |
| 63 | BGCOLOR) { \ |
| 64 | SK_MACRO_CONCAT(NAME,_GM_inner)(GR_CONTEXT, RENDER_TARGET_CONTEXT, CANVAS); \ |
| 65 | return skiagm::DrawResult::kOk; \ |
| 66 | } \ |
| 67 | void SK_MACRO_CONCAT(NAME,_GM_inner)( \ |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 68 | GrContext* GR_CONTEXT, GrRenderTargetContext* RENDER_TARGET_CONTEXT, SkCanvas* CANVAS) |
| 69 | |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 70 | #define DEF_SIMPLE_GPU_GM_CAN_FAIL(NAME, GR_CONTEXT, RENDER_TARGET_CONTEXT, CANVAS, ERR_MSG, W, H) \ |
| 71 | DEF_SIMPLE_GPU_GM_BG_CAN_FAIL(NAME, GR_CONTEXT, RENDER_TARGET_CONTEXT, CANVAS, \ |
| 72 | ERR_MSG, W, H, SK_ColorWHITE) |
| 73 | #define DEF_SIMPLE_GPU_GM_BG_CAN_FAIL(NAME, GR_CONTEXT, RENDER_TARGET_CONTEXT, CANVAS, ERR_MSG, W, \ |
| 74 | H, BGCOLOR) \ |
| 75 | static skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)( \ |
| 76 | GrContext*, GrRenderTargetContext*, SkCanvas*, SkString*); \ |
| 77 | DEF_GM(return new skiagm::SimpleGpuGM(BGCOLOR, SkString(#NAME), {W,H}, \ |
| 78 | SK_MACRO_CONCAT(NAME,_GM));) \ |
| 79 | skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)( \ |
| 80 | GrContext* GR_CONTEXT, GrRenderTargetContext* RENDER_TARGET_CONTEXT, SkCanvas* CANVAS, \ |
| 81 | SkString* ERR_MSG) |
| 82 | |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 83 | namespace skiagm { |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 84 | |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 85 | enum class DrawResult { |
| 86 | kOk, // Test drew successfully. |
| 87 | kFail, // Test failed to draw. |
| 88 | kSkip // Test is not applicable in this context and should be skipped. |
| 89 | }; |
| 90 | |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 91 | class GM { |
| 92 | public: |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 93 | using DrawResult = skiagm::DrawResult; |
| 94 | |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 95 | GM(SkColor backgroundColor = SK_ColorWHITE); |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 96 | virtual ~GM(); |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 97 | |
commit-bot@chromium.org | b21fac1 | 2014-02-07 21:13:11 +0000 | [diff] [blame] | 98 | enum Mode { |
| 99 | kGM_Mode, |
| 100 | kSample_Mode, |
| 101 | kBench_Mode, |
| 102 | }; |
| 103 | |
| 104 | void setMode(Mode mode) { fMode = mode; } |
| 105 | Mode getMode() const { return fMode; } |
| 106 | |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 107 | static constexpr char kErrorMsg_DrawSkippedGpuOnly[] = "This test is for GPU configs only."; |
| 108 | |
| 109 | DrawResult draw(SkCanvas* canvas) { |
| 110 | SkString errorMsg; |
| 111 | return this->draw(canvas, &errorMsg); |
| 112 | } |
| 113 | DrawResult draw(SkCanvas*, SkString* errorMsg); |
| 114 | |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 115 | void drawBackground(SkCanvas*); |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 116 | DrawResult drawContent(SkCanvas* canvas) { |
| 117 | SkString errorMsg; |
| 118 | return this->drawContent(canvas, &errorMsg); |
| 119 | } |
| 120 | DrawResult drawContent(SkCanvas*, SkString* errorMsg); |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 121 | |
mtklein | f4ba321 | 2015-01-28 15:32:24 -0800 | [diff] [blame] | 122 | SkISize getISize() { return this->onISize(); } |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 123 | const char* getName(); |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 124 | |
Mike Klein | 9707e90 | 2019-02-07 16:18:22 -0500 | [diff] [blame] | 125 | virtual bool runAsBench() const; |
mtklein | cf5d9c9 | 2015-01-23 10:31:45 -0800 | [diff] [blame] | 126 | |
reed@google.com | 487b560 | 2013-02-01 15:01:24 +0000 | [diff] [blame] | 127 | SkScalar width() { |
| 128 | return SkIntToScalar(this->getISize().width()); |
| 129 | } |
| 130 | SkScalar height() { |
scroggo@google.com | ab02627 | 2013-04-12 22:14:03 +0000 | [diff] [blame] | 131 | return SkIntToScalar(this->getISize().height()); |
reed@google.com | 487b560 | 2013-02-01 15:01:24 +0000 | [diff] [blame] | 132 | } |
| 133 | |
reed@google.com | b4b49cc | 2011-12-06 16:15:42 +0000 | [diff] [blame] | 134 | SkColor getBGColor() const { return fBGColor; } |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 135 | void setBGColor(SkColor); |
reed@google.com | 30db599 | 2011-08-29 17:41:02 +0000 | [diff] [blame] | 136 | |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 137 | // helper: fill a rect in the specified color based on the GM's getISize bounds. |
reed@google.com | 2d6ef52 | 2012-01-03 17:20:38 +0000 | [diff] [blame] | 138 | void drawSizeBounds(SkCanvas*, SkColor); |
| 139 | |
reed@google.com | aef7361 | 2012-11-16 13:41:45 +0000 | [diff] [blame] | 140 | bool isCanvasDeferred() const { return fCanvasIsDeferred; } |
| 141 | void setCanvasIsDeferred(bool isDeferred) { |
| 142 | fCanvasIsDeferred = isDeferred; |
| 143 | } |
| 144 | |
reed | 76113a9 | 2015-02-02 12:55:02 -0800 | [diff] [blame] | 145 | bool animate(const SkAnimTimer&); |
robertphillips | 05a4cf5 | 2016-09-08 09:02:43 -0700 | [diff] [blame] | 146 | bool handleKey(SkUnichar uni) { |
| 147 | return this->onHandleKey(uni); |
| 148 | } |
reed | d9adfe6 | 2015-02-01 19:01:04 -0800 | [diff] [blame] | 149 | |
Mike Reed | 81f60ec | 2018-05-15 10:09:52 -0400 | [diff] [blame] | 150 | bool getControls(SkMetaData* controls) { return this->onGetControls(controls); } |
| 151 | void setControls(const SkMetaData& controls) { this->onSetControls(controls); } |
| 152 | |
Mike Klein | 9707e90 | 2019-02-07 16:18:22 -0500 | [diff] [blame] | 153 | virtual void modifyGrContextOptions(GrContextOptions* options); |
bsalomon | 4ee6bd8 | 2015-05-27 13:23:23 -0700 | [diff] [blame] | 154 | |
halcanary | 2a24338 | 2015-09-09 08:16:41 -0700 | [diff] [blame] | 155 | protected: |
Mike Klein | 9707e90 | 2019-02-07 16:18:22 -0500 | [diff] [blame] | 156 | virtual void onOnceBeforeDraw(); |
| 157 | virtual DrawResult onDraw(SkCanvas* canvas, SkString* errorMsg); |
| 158 | virtual void onDraw(SkCanvas*); |
| 159 | |
robertphillips@google.com | 8570b5c | 2012-03-20 17:40:58 +0000 | [diff] [blame] | 160 | virtual SkISize onISize() = 0; |
reed@android.com | 8015dd8 | 2009-06-21 00:49:18 +0000 | [diff] [blame] | 161 | virtual SkString onShortName() = 0; |
mtklein | 1c40292 | 2015-01-23 11:07:07 -0800 | [diff] [blame] | 162 | |
Mike Klein | 9707e90 | 2019-02-07 16:18:22 -0500 | [diff] [blame] | 163 | virtual bool onAnimate(const SkAnimTimer&); |
| 164 | virtual bool onHandleKey(SkUnichar uni); |
| 165 | virtual bool onGetControls(SkMetaData*); |
| 166 | virtual void onSetControls(const SkMetaData&); |
vandebo@chromium.org | 79d3cb4 | 2012-03-21 17:34:30 +0000 | [diff] [blame] | 167 | |
reed@android.com | 8015dd8 | 2009-06-21 00:49:18 +0000 | [diff] [blame] | 168 | private: |
commit-bot@chromium.org | b21fac1 | 2014-02-07 21:13:11 +0000 | [diff] [blame] | 169 | Mode fMode; |
reed@android.com | 8015dd8 | 2009-06-21 00:49:18 +0000 | [diff] [blame] | 170 | SkString fShortName; |
bsalomon@google.com | 48dd1a2 | 2011-10-31 14:18:20 +0000 | [diff] [blame] | 171 | SkColor fBGColor; |
reed@google.com | aef7361 | 2012-11-16 13:41:45 +0000 | [diff] [blame] | 172 | bool fCanvasIsDeferred; // work-around problem in srcmode.cpp |
reed@google.com | 7775d66 | 2012-11-27 15:15:58 +0000 | [diff] [blame] | 173 | bool fHaveCalledOnceBeforeDraw; |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 174 | }; |
| 175 | |
Hal Canary | 972eba3 | 2018-07-30 17:07:07 -0400 | [diff] [blame] | 176 | typedef GM*(*GMFactory)(void*) ; |
| 177 | typedef sk_tools::Registry<GMFactory> GMRegistry; |
halcanary | f62c634 | 2015-01-12 15:27:46 -0800 | [diff] [blame] | 178 | |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 179 | // A GpuGM replaces the onDraw method with one that also accepts GPU objects alongside the |
| 180 | // SkCanvas. Its onDraw is only invoked on GPU configs; on non-GPU configs it will automatically |
| 181 | // draw a GPU-only message and abort. |
| 182 | class GpuGM : public GM { |
halcanary | f62c634 | 2015-01-12 15:27:46 -0800 | [diff] [blame] | 183 | public: |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 184 | GpuGM(SkColor backgroundColor = SK_ColorWHITE) : GM(backgroundColor) {} |
Chris Dalton | 382b122 | 2019-02-07 10:05:55 +0000 | [diff] [blame] | 185 | private: |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 186 | using GM::onDraw; |
| 187 | DrawResult onDraw(SkCanvas*, SkString* errorMsg) final; |
Mike Klein | 9707e90 | 2019-02-07 16:18:22 -0500 | [diff] [blame] | 188 | |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 189 | virtual DrawResult onDraw(GrContext* ctx, GrRenderTargetContext* rtc, SkCanvas* canvas, |
Mike Klein | 9707e90 | 2019-02-07 16:18:22 -0500 | [diff] [blame] | 190 | SkString* errorMsg); |
| 191 | virtual void onDraw(GrContext*, GrRenderTargetContext*, SkCanvas*); |
Chris Dalton | f5efa78 | 2019-02-05 17:42:14 -0700 | [diff] [blame] | 192 | }; |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 193 | |
| 194 | // SimpleGM is intended for basic GMs that can define their entire implementation inside a |
| 195 | // single "draw" function pointer. |
| 196 | class SimpleGM : public GM { |
| 197 | public: |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 198 | using DrawProc = DrawResult(*)(SkCanvas*, SkString*); |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 199 | SimpleGM(SkColor bgColor, const SkString& name, const SkISize& size, DrawProc drawProc) |
| 200 | : GM(bgColor), fName(name), fSize(size), fDrawProc(drawProc) {} |
| 201 | |
| 202 | private: |
Mike Klein | 9707e90 | 2019-02-07 16:18:22 -0500 | [diff] [blame] | 203 | SkISize onISize() override; |
| 204 | SkString onShortName() override; |
| 205 | DrawResult onDraw(SkCanvas* canvas, SkString* errorMsg) override; |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 206 | |
| 207 | const SkString fName; |
| 208 | const SkISize fSize; |
| 209 | const DrawProc fDrawProc; |
| 210 | }; |
| 211 | |
| 212 | class SimpleGpuGM : public GpuGM { |
| 213 | public: |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 214 | using DrawProc = DrawResult(*)(GrContext*, GrRenderTargetContext*, SkCanvas*, SkString*); |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 215 | SimpleGpuGM(SkColor bgColor, const SkString& name, const SkISize& size, DrawProc drawProc) |
| 216 | : GpuGM(bgColor), fName(name), fSize(size), fDrawProc(drawProc) {} |
| 217 | |
| 218 | private: |
Mike Klein | 9707e90 | 2019-02-07 16:18:22 -0500 | [diff] [blame] | 219 | SkISize onISize() override; |
| 220 | SkString onShortName() override; |
Chris Dalton | 50e24d7 | 2019-02-07 16:20:09 -0700 | [diff] [blame] | 221 | DrawResult onDraw(GrContext* ctx, GrRenderTargetContext* rtc, SkCanvas* canvas, |
Mike Klein | 9707e90 | 2019-02-07 16:18:22 -0500 | [diff] [blame] | 222 | SkString* errorMsg) override; |
Chris Dalton | 3a77837 | 2019-02-07 15:23:36 -0700 | [diff] [blame] | 223 | |
| 224 | const SkString fName; |
| 225 | const SkISize fSize; |
| 226 | const DrawProc fDrawProc; |
| 227 | }; |
| 228 | |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 229 | } |
| 230 | |
Mike Klein | c9eace8 | 2018-10-31 10:49:38 -0400 | [diff] [blame] | 231 | void MarkGMGood(SkCanvas*, SkScalar x, SkScalar y); |
| 232 | void MarkGMBad (SkCanvas*, SkScalar x, SkScalar y); |
| 233 | |
reed@android.com | 00dae86 | 2009-06-10 15:38:48 +0000 | [diff] [blame] | 234 | #endif |