robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 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 | */ |
| 7 | |
| 8 | #ifndef GrDrawContext_DEFINED |
| 9 | #define GrDrawContext_DEFINED |
| 10 | |
| 11 | #include "GrColor.h" |
robertphillips | 7bceedc | 2015-12-01 12:51:26 -0800 | [diff] [blame] | 12 | #include "GrRenderTarget.h" |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 13 | #include "SkRefCnt.h" |
robertphillips | 391395d | 2016-03-02 09:26:36 -0800 | [diff] [blame] | 14 | #include "SkRegion.h" |
robertphillips | fcf7829 | 2015-06-19 11:49:52 -0700 | [diff] [blame] | 15 | #include "SkSurfaceProps.h" |
joshualitt | 1de610a | 2016-01-06 08:26:09 -0800 | [diff] [blame] | 16 | #include "../private/GrSingleOwner.h" |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 17 | |
joshualitt | 8e84a1e | 2016-02-16 11:09:25 -0800 | [diff] [blame] | 18 | class GrAtlasTextContext; |
joshualitt | bc90735 | 2016-01-13 06:45:40 -0800 | [diff] [blame] | 19 | class GrAuditTrail; |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 20 | class GrClip; |
| 21 | class GrContext; |
bsalomon | abd30f5 | 2015-08-13 13:34:48 -0700 | [diff] [blame] | 22 | class GrDrawBatch; |
robertphillips | 391395d | 2016-03-02 09:26:36 -0800 | [diff] [blame] | 23 | class GrDrawContextPriv; |
cdalton | 8ff8d24 | 2015-12-08 10:20:32 -0800 | [diff] [blame] | 24 | class GrDrawPathBatchBase; |
robertphillips | 77a2e52 | 2015-10-17 07:43:27 -0700 | [diff] [blame] | 25 | class GrDrawingManager; |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 26 | class GrDrawTarget; |
| 27 | class GrPaint; |
| 28 | class GrPathProcessor; |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 29 | class GrPipelineBuilder; |
| 30 | class GrRenderTarget; |
| 31 | class GrStrokeInfo; |
| 32 | class GrSurface; |
robertphillips | 2334fb6 | 2015-06-17 05:43:33 -0700 | [diff] [blame] | 33 | class SkDrawFilter; |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 34 | struct SkIPoint; |
| 35 | struct SkIRect; |
| 36 | class SkMatrix; |
robertphillips | 2334fb6 | 2015-06-17 05:43:33 -0700 | [diff] [blame] | 37 | class SkPaint; |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 38 | class SkPath; |
| 39 | struct SkPoint; |
| 40 | struct SkRect; |
| 41 | class SkRRect; |
jvanverth | 31ff762 | 2015-08-07 10:09:28 -0700 | [diff] [blame] | 42 | struct SkRSXform; |
robertphillips | 2334fb6 | 2015-06-17 05:43:33 -0700 | [diff] [blame] | 43 | class SkTextBlob; |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 44 | |
| 45 | /* |
| 46 | * A helper object to orchestrate draws |
| 47 | */ |
| 48 | class SK_API GrDrawContext : public SkRefCnt { |
| 49 | public: |
robertphillips | 2334fb6 | 2015-06-17 05:43:33 -0700 | [diff] [blame] | 50 | ~GrDrawContext() override; |
| 51 | |
bsalomon | b8fea97 | 2016-02-16 07:34:17 -0800 | [diff] [blame] | 52 | bool copySurface(GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 53 | |
robertphillips | 2334fb6 | 2015-06-17 05:43:33 -0700 | [diff] [blame] | 54 | // TODO: it is odd that we need both the SkPaint in the following 3 methods. |
| 55 | // We should extract the text parameters from SkPaint and pass them separately |
| 56 | // akin to GrStrokeInfo (GrTextInfo?) |
joshualitt | 96880d9 | 2016-02-16 10:36:53 -0800 | [diff] [blame] | 57 | virtual void drawText(const GrClip&, const GrPaint&, const SkPaint&, |
| 58 | const SkMatrix& viewMatrix, const char text[], size_t byteLength, |
| 59 | SkScalar x, SkScalar y, const SkIRect& clipBounds); |
| 60 | virtual void drawPosText(const GrClip&, const GrPaint&, const SkPaint&, |
| 61 | const SkMatrix& viewMatrix, const char text[], size_t byteLength, |
| 62 | const SkScalar pos[], int scalarsPerPosition, |
| 63 | const SkPoint& offset, const SkIRect& clipBounds); |
| 64 | virtual void drawTextBlob(const GrClip&, const SkPaint&, |
| 65 | const SkMatrix& viewMatrix, const SkTextBlob*, |
| 66 | SkScalar x, SkScalar y, |
| 67 | SkDrawFilter*, const SkIRect& clipBounds); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 68 | |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 69 | /** |
| 70 | * Provides a perfomance hint that the render target's contents are allowed |
| 71 | * to become undefined. |
| 72 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 73 | void discard(); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 74 | |
| 75 | /** |
| 76 | * Clear the entire or rect of the render target, ignoring any clips. |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 77 | * @param rect the rect to clear or the whole thing if rect is NULL. |
| 78 | * @param color the color to clear to. |
| 79 | * @param canIgnoreRect allows partial clears to be converted to whole |
| 80 | * clears on platforms for which that is cheap |
| 81 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 82 | void clear(const SkIRect* rect, GrColor color, bool canIgnoreRect); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 83 | |
| 84 | /** |
| 85 | * Draw everywhere (respecting the clip) with the paint. |
| 86 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 87 | void drawPaint(const GrClip&, const GrPaint&, const SkMatrix& viewMatrix); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 88 | |
| 89 | /** |
| 90 | * Draw the rect using a paint. |
| 91 | * @param paint describes how to color pixels. |
| 92 | * @param viewMatrix transformation matrix |
| 93 | * @param strokeInfo the stroke information (width, join, cap), and. |
| 94 | * the dash information (intervals, count, phase). |
| 95 | * If strokeInfo == NULL, then the rect is filled. |
| 96 | * Otherwise, if stroke width == 0, then the stroke |
| 97 | * is always a single pixel thick, else the rect is |
| 98 | * mitered/beveled stroked based on stroke width. |
| 99 | * The rects coords are used to access the paint (through texture matrix) |
| 100 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 101 | void drawRect(const GrClip&, |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 102 | const GrPaint& paint, |
| 103 | const SkMatrix& viewMatrix, |
| 104 | const SkRect&, |
robertphillips | 4bc3181 | 2016-03-01 12:22:49 -0800 | [diff] [blame] | 105 | const GrStrokeInfo* strokeInfo = nullptr); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 106 | |
| 107 | /** |
bsalomon | a2e69fc | 2015-11-05 10:41:43 -0800 | [diff] [blame] | 108 | * Maps a rectangle of shader coordinates to a rectangle and fills that rectangle. |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 109 | * |
| 110 | * @param paint describes how to color pixels. |
| 111 | * @param viewMatrix transformation matrix which applies to rectToDraw |
| 112 | * @param rectToDraw the rectangle to draw |
| 113 | * @param localRect the rectangle of shader coordinates applied to rectToDraw |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 114 | */ |
bsalomon | a2e69fc | 2015-11-05 10:41:43 -0800 | [diff] [blame] | 115 | void fillRectToRect(const GrClip&, |
| 116 | const GrPaint& paint, |
| 117 | const SkMatrix& viewMatrix, |
| 118 | const SkRect& rectToDraw, |
| 119 | const SkRect& localRect); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 120 | |
| 121 | /** |
bsalomon | a2e69fc | 2015-11-05 10:41:43 -0800 | [diff] [blame] | 122 | * Fills a rect with a paint and a localMatrix. |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 123 | */ |
bsalomon | a2e69fc | 2015-11-05 10:41:43 -0800 | [diff] [blame] | 124 | void fillRectWithLocalMatrix(const GrClip& clip, |
| 125 | const GrPaint& paint, |
| 126 | const SkMatrix& viewMatrix, |
| 127 | const SkRect& rect, |
| 128 | const SkMatrix& localMatrix); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 129 | |
| 130 | /** |
| 131 | * Draw a roundrect using a paint. |
| 132 | * |
| 133 | * @param paint describes how to color pixels. |
| 134 | * @param viewMatrix transformation matrix |
| 135 | * @param rrect the roundrect to draw |
| 136 | * @param strokeInfo the stroke information (width, join, cap) and |
| 137 | * the dash information (intervals, count, phase). |
| 138 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 139 | void drawRRect(const GrClip&, |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 140 | const GrPaint&, |
| 141 | const SkMatrix& viewMatrix, |
| 142 | const SkRRect& rrect, |
| 143 | const GrStrokeInfo&); |
| 144 | |
| 145 | /** |
robertphillips | 0009589 | 2016-02-29 13:50:40 -0800 | [diff] [blame] | 146 | * Shortcut for drawing an SkPath consisting of nested rrects using a paint. |
| 147 | * Does not support stroking. The result is undefined if outer does not contain |
| 148 | * inner. |
| 149 | * |
| 150 | * @param paint describes how to color pixels. |
| 151 | * @param viewMatrix transformation matrix |
| 152 | * @param outer the outer roundrect |
| 153 | * @param inner the inner roundrect |
| 154 | */ |
| 155 | void drawDRRect(const GrClip&, |
| 156 | const GrPaint&, |
| 157 | const SkMatrix& viewMatrix, |
| 158 | const SkRRect& outer, |
| 159 | const SkRRect& inner); |
| 160 | |
| 161 | /** |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 162 | * Draws a path. |
| 163 | * |
| 164 | * @param paint describes how to color pixels. |
| 165 | * @param viewMatrix transformation matrix |
| 166 | * @param path the path to draw |
| 167 | * @param strokeInfo the stroke information (width, join, cap) and |
| 168 | * the dash information (intervals, count, phase). |
| 169 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 170 | void drawPath(const GrClip&, |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 171 | const GrPaint&, |
| 172 | const SkMatrix& viewMatrix, |
| 173 | const SkPath&, |
| 174 | const GrStrokeInfo&); |
| 175 | |
| 176 | /** |
| 177 | * Draws vertices with a paint. |
| 178 | * |
| 179 | * @param paint describes how to color pixels. |
| 180 | * @param viewMatrix transformation matrix |
| 181 | * @param primitiveType primitives type to draw. |
| 182 | * @param vertexCount number of vertices. |
| 183 | * @param positions array of vertex positions, required. |
| 184 | * @param texCoords optional array of texture coordinates used |
| 185 | * to access the paint. |
| 186 | * @param colors optional array of per-vertex colors, supercedes |
| 187 | * the paint's color field. |
| 188 | * @param indices optional array of indices. If NULL vertices |
| 189 | * are drawn non-indexed. |
| 190 | * @param indexCount if indices is non-null then this is the |
| 191 | * number of indices. |
| 192 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 193 | void drawVertices(const GrClip&, |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 194 | const GrPaint& paint, |
| 195 | const SkMatrix& viewMatrix, |
| 196 | GrPrimitiveType primitiveType, |
| 197 | int vertexCount, |
| 198 | const SkPoint positions[], |
| 199 | const SkPoint texs[], |
| 200 | const GrColor colors[], |
| 201 | const uint16_t indices[], |
| 202 | int indexCount); |
| 203 | |
| 204 | /** |
jvanverth | 31ff762 | 2015-08-07 10:09:28 -0700 | [diff] [blame] | 205 | * Draws textured sprites from an atlas with a paint. |
| 206 | * |
| 207 | * @param paint describes how to color pixels. |
| 208 | * @param viewMatrix transformation matrix |
| 209 | * @param spriteCount number of sprites. |
| 210 | * @param xform array of compressed transformation data, required. |
| 211 | * @param texRect array of texture rectangles used to access the paint. |
| 212 | * @param colors optional array of per-sprite colors, supercedes |
| 213 | * the paint's color field. |
| 214 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 215 | void drawAtlas(const GrClip&, |
jvanverth | 31ff762 | 2015-08-07 10:09:28 -0700 | [diff] [blame] | 216 | const GrPaint& paint, |
| 217 | const SkMatrix& viewMatrix, |
| 218 | int spriteCount, |
| 219 | const SkRSXform xform[], |
| 220 | const SkRect texRect[], |
| 221 | const SkColor colors[]); |
| 222 | |
| 223 | /** |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 224 | * Draws an oval. |
| 225 | * |
| 226 | * @param paint describes how to color pixels. |
| 227 | * @param viewMatrix transformation matrix |
| 228 | * @param oval the bounding rect of the oval. |
| 229 | * @param strokeInfo the stroke information (width, join, cap) and |
| 230 | * the dash information (intervals, count, phase). |
| 231 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 232 | void drawOval(const GrClip&, |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 233 | const GrPaint& paint, |
| 234 | const SkMatrix& viewMatrix, |
| 235 | const SkRect& oval, |
| 236 | const GrStrokeInfo& strokeInfo); |
| 237 | |
joshualitt | 33a5fce | 2015-11-18 13:28:51 -0800 | [diff] [blame] | 238 | /** |
| 239 | * Draw the image stretched differentially to fit into dst. |
| 240 | * center is a rect within the image, and logically divides the image |
| 241 | * into 9 sections (3x3). For example, if the middle pixel of a [5x5] |
| 242 | * image is the "center", then the center-rect should be [2, 2, 3, 3]. |
| 243 | * |
| 244 | * If the dst is >= the image size, then... |
| 245 | * - The 4 corners are not stretched at all. |
| 246 | * - The sides are stretched in only one axis. |
| 247 | * - The center is stretched in both axes. |
| 248 | * Else, for each axis where dst < image, |
| 249 | * - The corners shrink proportionally |
| 250 | * - The sides (along the shrink axis) and center are not drawn |
| 251 | */ |
| 252 | void drawImageNine(const GrClip&, |
| 253 | const GrPaint& paint, |
| 254 | const SkMatrix& viewMatrix, |
| 255 | int imageWidth, |
| 256 | int imageHeight, |
| 257 | const SkIRect& center, |
| 258 | const SkRect& dst); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 259 | |
joshualitt | b7ee1bf | 2015-08-10 11:59:02 -0700 | [diff] [blame] | 260 | /** |
| 261 | * Draws a batch |
| 262 | * |
| 263 | * @param paint describes how to color pixels. |
| 264 | * @param batch the batch to draw |
| 265 | */ |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 266 | void drawBatch(const GrClip&, const GrPaint&, GrDrawBatch*); |
joshualitt | b7ee1bf | 2015-08-10 11:59:02 -0700 | [diff] [blame] | 267 | |
cdalton | 8ff8d24 | 2015-12-08 10:20:32 -0800 | [diff] [blame] | 268 | /** |
| 269 | * Draws a path batch. This needs to be separate from drawBatch because we install path stencil |
| 270 | * settings late. |
| 271 | * |
| 272 | * TODO: Figure out a better model that allows us to roll this method into drawBatch. |
| 273 | */ |
| 274 | void drawPathBatch(const GrPipelineBuilder&, GrDrawPathBatchBase*); |
| 275 | |
robertphillips | 7bceedc | 2015-12-01 12:51:26 -0800 | [diff] [blame] | 276 | int width() const { return fRenderTarget->width(); } |
| 277 | int height() const { return fRenderTarget->height(); } |
| 278 | int numColorSamples() const { return fRenderTarget->numColorSamples(); } |
brianosman | b461d34 | 2016-04-13 13:10:14 -0700 | [diff] [blame] | 279 | bool isGammaCorrect() const { return fSurfaceProps.isGammaCorrect(); } |
robertphillips | 7bceedc | 2015-12-01 12:51:26 -0800 | [diff] [blame] | 280 | |
robertphillips | 433625e | 2015-12-04 06:58:16 -0800 | [diff] [blame] | 281 | GrRenderTarget* accessRenderTarget() { return fRenderTarget; } |
| 282 | |
robertphillips | 391395d | 2016-03-02 09:26:36 -0800 | [diff] [blame] | 283 | // Provides access to functions that aren't part of the public API. |
| 284 | GrDrawContextPriv drawContextPriv(); |
| 285 | const GrDrawContextPriv drawContextPriv() const; |
joshualitt | f5883a6 | 2016-01-13 07:47:38 -0800 | [diff] [blame] | 286 | |
joshualitt | 96880d9 | 2016-02-16 10:36:53 -0800 | [diff] [blame] | 287 | protected: |
| 288 | GrDrawContext(GrContext*, GrDrawingManager*, GrRenderTarget*, |
| 289 | const SkSurfaceProps* surfaceProps, GrAuditTrail*, GrSingleOwner*); |
| 290 | |
| 291 | GrDrawingManager* drawingManager() { return fDrawingManager; } |
| 292 | GrAuditTrail* auditTrail() { return fAuditTrail; } |
| 293 | const SkSurfaceProps& surfaceProps() const { return fSurfaceProps; } |
| 294 | |
| 295 | SkDEBUGCODE(GrSingleOwner* singleOwner() { return fSingleOwner; }) |
| 296 | SkDEBUGCODE(void validate() const;) |
| 297 | |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 298 | private: |
joshualitt | 2e2202e | 2015-12-10 11:22:08 -0800 | [diff] [blame] | 299 | friend class GrAtlasTextBlob; // for access to drawBatch |
robertphillips | 77a2e52 | 2015-10-17 07:43:27 -0700 | [diff] [blame] | 300 | friend class GrDrawingManager; // for ctor |
robertphillips | 391395d | 2016-03-02 09:26:36 -0800 | [diff] [blame] | 301 | friend class GrDrawContextPriv; |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 302 | |
robertphillips | 0009589 | 2016-02-29 13:50:40 -0800 | [diff] [blame] | 303 | bool drawFilledDRRect(const GrClip& clip, |
| 304 | const GrPaint& paint, |
| 305 | const SkMatrix& viewMatrix, |
| 306 | const SkRRect& origOuter, |
| 307 | const SkRRect& origInner); |
| 308 | |
robertphillips | 391395d | 2016-03-02 09:26:36 -0800 | [diff] [blame] | 309 | GrDrawBatch* getFillRectBatch(const GrPaint& paint, |
| 310 | const SkMatrix& viewMatrix, |
| 311 | const SkRect& rect); |
| 312 | |
robertphillips | 4bc3181 | 2016-03-01 12:22:49 -0800 | [diff] [blame] | 313 | void internalDrawPath(const GrClip& clip, |
| 314 | const GrPaint& paint, |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 315 | const SkMatrix& viewMatrix, |
robertphillips | 4bc3181 | 2016-03-01 12:22:49 -0800 | [diff] [blame] | 316 | const SkPath& path, |
| 317 | const GrStrokeInfo& strokeInfo); |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 318 | |
robertphillips | 2334fb6 | 2015-06-17 05:43:33 -0700 | [diff] [blame] | 319 | // This entry point allows the GrTextContext-derived classes to add their batches to |
| 320 | // the drawTarget. |
bsalomon | abd30f5 | 2015-08-13 13:34:48 -0700 | [diff] [blame] | 321 | void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); |
robertphillips | 2334fb6 | 2015-06-17 05:43:33 -0700 | [diff] [blame] | 322 | |
robertphillips | a106c62 | 2015-10-16 09:07:06 -0700 | [diff] [blame] | 323 | GrDrawTarget* getDrawTarget(); |
| 324 | |
joshualitt | 8db8678 | 2016-02-17 05:40:00 -0800 | [diff] [blame] | 325 | GrDrawingManager* fDrawingManager; |
| 326 | GrRenderTarget* fRenderTarget; |
robertphillips | a106c62 | 2015-10-16 09:07:06 -0700 | [diff] [blame] | 327 | |
| 328 | // In MDB-mode the drawTarget can be closed by some other drawContext that has picked |
| 329 | // it up. For this reason, the drawTarget should only ever be accessed via 'getDrawTarget'. |
joshualitt | 8db8678 | 2016-02-17 05:40:00 -0800 | [diff] [blame] | 330 | GrDrawTarget* fDrawTarget; |
| 331 | SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; |
| 332 | GrContext* fContext; |
robertphillips | 2334fb6 | 2015-06-17 05:43:33 -0700 | [diff] [blame] | 333 | |
joshualitt | 8db8678 | 2016-02-17 05:40:00 -0800 | [diff] [blame] | 334 | SkSurfaceProps fSurfaceProps; |
| 335 | GrAuditTrail* fAuditTrail; |
joshualitt | 1de610a | 2016-01-06 08:26:09 -0800 | [diff] [blame] | 336 | |
| 337 | // In debug builds we guard against improper thread handling |
joshualitt | 6d0872d | 2016-01-11 08:27:48 -0800 | [diff] [blame] | 338 | SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
robertphillips | ea46150 | 2015-05-26 11:38:03 -0700 | [diff] [blame] | 339 | }; |
| 340 | |
| 341 | #endif |