chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2012 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
| 8 | |
| 9 | |
| 10 | #ifndef SKDEBUGCANVAS_H_ |
| 11 | #define SKDEBUGCANVAS_H_ |
| 12 | |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 13 | #include "SkCanvas.h" |
| 14 | #include "SkDrawCommand.h" |
commit-bot@chromium.org | 2a67e12 | 2014-05-19 13:53:10 +0000 | [diff] [blame] | 15 | #include "SkPathOps.h" |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 16 | #include "SkPicture.h" |
robertphillips@google.com | 8a1cdae | 2012-11-19 20:44:29 +0000 | [diff] [blame] | 17 | #include "SkTArray.h" |
chudy@google.com | 97cee97 | 2012-08-07 20:41:37 +0000 | [diff] [blame] | 18 | #include "SkString.h" |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 19 | |
fmalita | 65cdb57 | 2015-03-26 07:24:48 -0700 | [diff] [blame] | 20 | class SkNWayCanvas; |
robertphillips@google.com | 32bbcf8 | 2013-10-17 17:56:10 +0000 | [diff] [blame] | 21 | |
fmalita@google.com | 86681b3 | 2013-06-13 20:59:14 +0000 | [diff] [blame] | 22 | class SK_API SkDebugCanvas : public SkCanvas { |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 23 | public: |
chudy@google.com | 80a4a60 | 2012-07-30 18:54:07 +0000 | [diff] [blame] | 24 | SkDebugCanvas(int width, int height); |
robertphillips@google.com | f4741c1 | 2013-02-06 20:13:54 +0000 | [diff] [blame] | 25 | virtual ~SkDebugCanvas(); |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 26 | |
commit-bot@chromium.org | 768ac85 | 2014-03-03 16:32:17 +0000 | [diff] [blame] | 27 | void toggleFilter(bool toggle) { fFilter = toggle; } |
| 28 | |
| 29 | void setMegaVizMode(bool megaVizMode) { fMegaVizMode = megaVizMode; } |
commit-bot@chromium.org | 57f74e0 | 2014-03-25 23:31:33 +0000 | [diff] [blame] | 30 | bool getMegaVizMode() const { return fMegaVizMode; } |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 31 | |
| 32 | /** |
robertphillips@google.com | f4741c1 | 2013-02-06 20:13:54 +0000 | [diff] [blame] | 33 | * Enable or disable overdraw visualization |
| 34 | */ |
fmalita | 65cdb57 | 2015-03-26 07:24:48 -0700 | [diff] [blame] | 35 | void setOverdrawViz(bool overdrawViz); |
commit-bot@chromium.org | 57f74e0 | 2014-03-25 23:31:33 +0000 | [diff] [blame] | 36 | bool getOverdrawViz() const { return fOverdrawViz; } |
| 37 | |
commit-bot@chromium.org | 2a67e12 | 2014-05-19 13:53:10 +0000 | [diff] [blame] | 38 | bool getAllowSimplifyClip() const { return fAllowSimplifyClip; } |
| 39 | |
commit-bot@chromium.org | 57f74e0 | 2014-03-25 23:31:33 +0000 | [diff] [blame] | 40 | void setPicture(SkPicture* picture) { fPicture = picture; } |
robertphillips@google.com | f4741c1 | 2013-02-06 20:13:54 +0000 | [diff] [blame] | 41 | |
| 42 | /** |
robertphillips@google.com | 32bbcf8 | 2013-10-17 17:56:10 +0000 | [diff] [blame] | 43 | * Enable or disable texure filtering override |
| 44 | */ |
reed | 93a1215 | 2015-03-16 10:08:34 -0700 | [diff] [blame] | 45 | void overrideTexFiltering(bool overrideTexFiltering, SkFilterQuality); |
robertphillips@google.com | 32bbcf8 | 2013-10-17 17:56:10 +0000 | [diff] [blame] | 46 | |
| 47 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 48 | Executes all draw calls to the canvas. |
| 49 | @param canvas The canvas being drawn to |
| 50 | */ |
| 51 | void draw(SkCanvas* canvas); |
| 52 | |
| 53 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 54 | Executes the draw calls up to the specified index. |
| 55 | @param canvas The canvas being drawn to |
| 56 | @param index The index of the final command being executed |
| 57 | */ |
chudy@google.com | 0b5bbb0 | 2012-07-31 19:55:32 +0000 | [diff] [blame] | 58 | void drawTo(SkCanvas* canvas, int index); |
| 59 | |
| 60 | /** |
chudy@google.com | a9e937c | 2012-08-03 17:32:05 +0000 | [diff] [blame] | 61 | Returns the most recently calculated transformation matrix |
| 62 | */ |
| 63 | const SkMatrix& getCurrentMatrix() { |
| 64 | return fMatrix; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | Returns the most recently calculated clip |
| 69 | */ |
| 70 | const SkIRect& getCurrentClip() { |
| 71 | return fClip; |
| 72 | } |
| 73 | |
| 74 | /** |
chudy@google.com | 0b5bbb0 | 2012-07-31 19:55:32 +0000 | [diff] [blame] | 75 | Returns the index of the last draw command to write to the pixel at (x,y) |
| 76 | */ |
chudy@google.com | 830b879 | 2012-08-01 15:57:52 +0000 | [diff] [blame] | 77 | int getCommandAtPoint(int x, int y, int index); |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 78 | |
| 79 | /** |
robertphillips@google.com | 50c84da | 2013-04-01 18:18:49 +0000 | [diff] [blame] | 80 | Removes the command at the specified index |
| 81 | @param index The index of the command to delete |
| 82 | */ |
| 83 | void deleteDrawCommandAt(int index); |
| 84 | |
| 85 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 86 | Returns the draw command at the given index. |
| 87 | @param index The index of the command |
| 88 | */ |
| 89 | SkDrawCommand* getDrawCommandAt(int index); |
| 90 | |
| 91 | /** |
robertphillips@google.com | 50c84da | 2013-04-01 18:18:49 +0000 | [diff] [blame] | 92 | Sets the draw command for a given index. |
| 93 | @param index The index to overwrite |
| 94 | @param command The new command |
| 95 | */ |
| 96 | void setDrawCommandAt(int index, SkDrawCommand* command); |
| 97 | |
| 98 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 99 | Returns information about the command at the given index. |
| 100 | @param index The index of the command |
| 101 | */ |
fmalita | 8c89c52 | 2014-11-08 16:18:56 -0800 | [diff] [blame] | 102 | const SkTDArray<SkString*>* getCommandInfo(int index) const; |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 103 | |
| 104 | /** |
chudy@google.com | 7e4cfbf | 2012-07-17 15:40:51 +0000 | [diff] [blame] | 105 | Returns the visibility of the command at the given index. |
| 106 | @param index The index of the command |
| 107 | */ |
| 108 | bool getDrawCommandVisibilityAt(int index); |
| 109 | |
| 110 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 111 | Returns the vector of draw commands |
| 112 | */ |
reed@google.com | 4469938 | 2013-10-31 17:28:30 +0000 | [diff] [blame] | 113 | SK_ATTR_DEPRECATED("please use getDrawCommandAt and getSize instead") |
robertphillips@google.com | 8a1cdae | 2012-11-19 20:44:29 +0000 | [diff] [blame] | 114 | const SkTDArray<SkDrawCommand*>& getDrawCommands() const; |
skia.committer@gmail.com | 2e71f16 | 2013-03-12 07:12:32 +0000 | [diff] [blame] | 115 | |
robertphillips@google.com | febc0ec | 2013-03-11 22:53:11 +0000 | [diff] [blame] | 116 | /** |
| 117 | Returns the vector of draw commands. Do not use this entry |
| 118 | point - it is going away! |
| 119 | */ |
| 120 | SkTDArray<SkDrawCommand*>& getDrawCommands(); |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 121 | |
| 122 | /** |
chudy@google.com | f141432 | 2012-07-03 20:28:14 +0000 | [diff] [blame] | 123 | Returns length of draw command vector. |
| 124 | */ |
commit-bot@chromium.org | 0d4fe14 | 2013-07-15 22:47:14 +0000 | [diff] [blame] | 125 | int getSize() const { |
robertphillips@google.com | 67baba4 | 2013-01-02 20:20:31 +0000 | [diff] [blame] | 126 | return fCommandVector.count(); |
chudy@google.com | f141432 | 2012-07-03 20:28:14 +0000 | [diff] [blame] | 127 | } |
| 128 | |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 129 | /** |
| 130 | Toggles the visibility / execution of the draw command at index i with |
| 131 | the value of toggle. |
| 132 | */ |
| 133 | void toggleCommand(int index, bool toggle); |
| 134 | |
bungeman@google.com | e8cc6e8 | 2013-01-17 16:30:56 +0000 | [diff] [blame] | 135 | void setUserMatrix(SkMatrix matrix) { |
| 136 | fUserMatrix = matrix; |
chudy@google.com | 830b879 | 2012-08-01 15:57:52 +0000 | [diff] [blame] | 137 | } |
| 138 | |
commit-bot@chromium.org | 2a67e12 | 2014-05-19 13:53:10 +0000 | [diff] [blame] | 139 | SkString clipStackData() const { return fClipStackData; } |
| 140 | |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 141 | //////////////////////////////////////////////////////////////////////////////// |
| 142 | // Inherited from SkCanvas |
| 143 | //////////////////////////////////////////////////////////////////////////////// |
| 144 | |
robertphillips@google.com | 3b0a9fe | 2013-01-31 15:56:22 +0000 | [diff] [blame] | 145 | static const int kVizImageHeight = 256; |
| 146 | static const int kVizImageWidth = 256; |
| 147 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 148 | bool isClipEmpty() const override { return false; } |
| 149 | bool isClipRect() const override { return true; } |
| 150 | bool getClipBounds(SkRect* bounds) const override { |
bsalomon | 49f085d | 2014-09-05 13:34:00 -0700 | [diff] [blame] | 151 | if (bounds) { |
skia.committer@gmail.com | 370a899 | 2014-03-01 03:02:09 +0000 | [diff] [blame] | 152 | bounds->setXYWH(0, 0, |
reed | e5ea500 | 2014-09-03 11:54:58 -0700 | [diff] [blame] | 153 | SkIntToScalar(this->imageInfo().width()), |
| 154 | SkIntToScalar(this->imageInfo().height())); |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 155 | } |
| 156 | return true; |
| 157 | } |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 158 | bool getClipDeviceBounds(SkIRect* bounds) const override { |
bsalomon | 49f085d | 2014-09-05 13:34:00 -0700 | [diff] [blame] | 159 | if (bounds) { |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 160 | bounds->setLargest(); |
| 161 | } |
| 162 | return true; |
| 163 | } |
| 164 | |
commit-bot@chromium.org | ab58273 | 2014-02-21 12:20:45 +0000 | [diff] [blame] | 165 | protected: |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 166 | void willSave() override; |
| 167 | SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) override; |
| 168 | void willRestore() override; |
commit-bot@chromium.org | e54a23f | 2014-03-12 20:21:48 +0000 | [diff] [blame] | 169 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 170 | void didConcat(const SkMatrix&) override; |
| 171 | void didSetMatrix(const SkMatrix&) override; |
commit-bot@chromium.org | 44c48d0 | 2014-03-13 20:03:58 +0000 | [diff] [blame] | 172 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 173 | void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; |
robertphillips | 9bafc30 | 2015-02-13 11:13:00 -0800 | [diff] [blame] | 174 | void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 175 | const SkPaint&) override; |
robertphillips | 9bafc30 | 2015-02-13 11:13:00 -0800 | [diff] [blame] | 176 | void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 177 | const SkPaint&) override; |
robertphillips | 9bafc30 | 2015-02-13 11:13:00 -0800 | [diff] [blame] | 178 | void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 179 | SkScalar constY, const SkPaint&) override; |
robertphillips | 9bafc30 | 2015-02-13 11:13:00 -0800 | [diff] [blame] | 180 | void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 181 | const SkMatrix* matrix, const SkPaint&) override; |
robertphillips | 9bafc30 | 2015-02-13 11:13:00 -0800 | [diff] [blame] | 182 | void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 183 | const SkPaint& paint) override; |
commit-bot@chromium.org | ab58273 | 2014-02-21 12:20:45 +0000 | [diff] [blame] | 184 | |
robertphillips | 9bafc30 | 2015-02-13 11:13:00 -0800 | [diff] [blame] | 185 | void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 186 | const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint); |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 187 | void onDrawPaint(const SkPaint&) override; |
robertphillips | 9bafc30 | 2015-02-13 11:13:00 -0800 | [diff] [blame] | 188 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 189 | void onDrawRect(const SkRect&, const SkPaint&) override; |
| 190 | void onDrawOval(const SkRect&, const SkPaint&) override; |
| 191 | void onDrawRRect(const SkRRect&, const SkPaint&) override; |
| 192 | void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override; |
robertphillips | 9bafc30 | 2015-02-13 11:13:00 -0800 | [diff] [blame] | 193 | void onDrawVertices(VertexMode vmode, int vertexCount, |
| 194 | const SkPoint vertices[], const SkPoint texs[], |
| 195 | const SkColor colors[], SkXfermode* xmode, |
| 196 | const uint16_t indices[], int indexCount, |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 197 | const SkPaint&) override; |
| 198 | void onDrawPath(const SkPath&, const SkPaint&) override; |
| 199 | void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPaint*) override; |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame] | 200 | void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 201 | DrawBitmapRectFlags flags) override; |
| 202 | void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*) override; |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame] | 203 | void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 204 | const SkPaint*) override; |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame] | 205 | void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 206 | const SkPaint*) override; |
| 207 | void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) override; |
| 208 | void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
| 209 | void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
| 210 | void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
| 211 | void onClipRegion(const SkRegion& region, SkRegion::Op) override; |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 212 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 213 | void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) override; |
robertphillips | 9b14f26 | 2014-06-04 05:40:44 -0700 | [diff] [blame] | 214 | |
commit-bot@chromium.org | 1643b2c | 2014-03-03 23:25:41 +0000 | [diff] [blame] | 215 | void markActiveCommands(int index); |
commit-bot@chromium.org | 768ac85 | 2014-03-03 16:32:17 +0000 | [diff] [blame] | 216 | |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 217 | private: |
robertphillips@google.com | 67baba4 | 2013-01-02 20:20:31 +0000 | [diff] [blame] | 218 | SkTDArray<SkDrawCommand*> fCommandVector; |
commit-bot@chromium.org | 57f74e0 | 2014-03-25 23:31:33 +0000 | [diff] [blame] | 219 | SkPicture* fPicture; |
chudy@google.com | 7e4cfbf | 2012-07-17 15:40:51 +0000 | [diff] [blame] | 220 | bool fFilter; |
commit-bot@chromium.org | 768ac85 | 2014-03-03 16:32:17 +0000 | [diff] [blame] | 221 | bool fMegaVizMode; |
bungeman@google.com | e8cc6e8 | 2013-01-17 16:30:56 +0000 | [diff] [blame] | 222 | SkMatrix fUserMatrix; |
chudy@google.com | a9e937c | 2012-08-03 17:32:05 +0000 | [diff] [blame] | 223 | SkMatrix fMatrix; |
| 224 | SkIRect fClip; |
robertphillips@google.com | 32bbcf8 | 2013-10-17 17:56:10 +0000 | [diff] [blame] | 225 | |
commit-bot@chromium.org | 2a67e12 | 2014-05-19 13:53:10 +0000 | [diff] [blame] | 226 | SkString fClipStackData; |
| 227 | bool fCalledAddStackData; |
| 228 | SkPath fSaveDevPath; |
| 229 | |
robertphillips@google.com | f4741c1 | 2013-02-06 20:13:54 +0000 | [diff] [blame] | 230 | bool fOverdrawViz; |
fmalita | 65cdb57 | 2015-03-26 07:24:48 -0700 | [diff] [blame] | 231 | bool fOverrideFilterQuality; |
| 232 | SkFilterQuality fFilterQuality; |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 233 | |
fmalita | 65cdb57 | 2015-03-26 07:24:48 -0700 | [diff] [blame] | 234 | SkAutoTUnref<SkNWayCanvas> fPaintFilterCanvas; |
robertphillips@google.com | 32bbcf8 | 2013-10-17 17:56:10 +0000 | [diff] [blame] | 235 | |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 236 | /** |
commit-bot@chromium.org | 1643b2c | 2014-03-03 23:25:41 +0000 | [diff] [blame] | 237 | The active saveLayer commands at a given point in the renderering. |
| 238 | Only used when "mega" visualization is enabled. |
| 239 | */ |
| 240 | SkTDArray<SkDrawCommand*> fActiveLayers; |
| 241 | |
skia.committer@gmail.com | ade9a34 | 2014-03-04 03:02:32 +0000 | [diff] [blame] | 242 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 243 | Adds the command to the classes vector of commands. |
| 244 | @param command The draw command for execution |
| 245 | */ |
| 246 | void addDrawCommand(SkDrawCommand* command); |
chudy@google.com | 830b879 | 2012-08-01 15:57:52 +0000 | [diff] [blame] | 247 | |
| 248 | /** |
| 249 | Applies any panning and zooming the user has specified before |
| 250 | drawing anything else into the canvas. |
| 251 | */ |
| 252 | void applyUserTransform(SkCanvas* canvas); |
robertphillips@google.com | 3b0a9fe | 2013-01-31 15:56:22 +0000 | [diff] [blame] | 253 | |
commit-bot@chromium.org | 2a67e12 | 2014-05-19 13:53:10 +0000 | [diff] [blame] | 254 | void resetClipStackData() { fClipStackData.reset(); fCalledAddStackData = false; } |
| 255 | |
| 256 | void addClipStackData(const SkPath& devPath, const SkPath& operand, SkRegion::Op elementOp); |
| 257 | void addPathData(const SkPath& path, const char* pathName); |
| 258 | bool lastClipStackData(const SkPath& devPath); |
| 259 | void outputConicPoints(const SkPoint* pts, SkScalar weight); |
| 260 | void outputPoints(const SkPoint* pts, int count); |
| 261 | void outputPointsCommon(const SkPoint* pts, int count); |
| 262 | void outputScalar(SkScalar num); |
skia.committer@gmail.com | 3b9e8be | 2014-05-20 03:05:34 +0000 | [diff] [blame] | 263 | |
fmalita | 65cdb57 | 2015-03-26 07:24:48 -0700 | [diff] [blame] | 264 | void updatePaintFilterCanvas(); |
| 265 | |
robertphillips@google.com | 3b0a9fe | 2013-01-31 15:56:22 +0000 | [diff] [blame] | 266 | typedef SkCanvas INHERITED; |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 267 | }; |
| 268 | |
| 269 | #endif |