| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 SkGatherPixelRefsAndRects_DEFINED | 8 #ifndef SkGatherPixelRefsAndRects_DEFINED |
| 9 #define SkGatherPixelRefsAndRects_DEFINED | 9 #define SkGatherPixelRefsAndRects_DEFINED |
| 10 | 10 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 this->drawRect(draw, bounds, paint); | 264 this->drawRect(draw, bounds, paint); |
| 265 } | 265 } |
| 266 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, int vert
exCount, | 266 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, int vert
exCount, |
| 267 const SkPoint verts[], const SkPoint texs[], | 267 const SkPoint verts[], const SkPoint texs[], |
| 268 const SkColor colors[], SkXfermode* xmode, | 268 const SkColor colors[], SkXfermode* xmode, |
| 269 const uint16_t indices[], int indexCount, | 269 const uint16_t indices[], int indexCount, |
| 270 const SkPaint& paint) SK_OVERRIDE { | 270 const SkPaint& paint) SK_OVERRIDE { |
| 271 this->drawPoints(draw, SkCanvas::kPolygon_PointMode, vertexCount, verts,
paint); | 271 this->drawPoints(draw, SkCanvas::kPolygon_PointMode, vertexCount, verts,
paint); |
| 272 } | 272 } |
| 273 virtual void drawPatch(const SkDraw&, const SkPatch& patch, const SkPaint& p
aint) SK_OVERRIDE { |
| 274 //TODO |
| 275 } |
| 273 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 276 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
| 274 const SkPaint&) SK_OVERRIDE { | 277 const SkPaint&) SK_OVERRIDE { |
| 275 NothingToDo(); | 278 NothingToDo(); |
| 276 } | 279 } |
| 277 // TODO: allow this call to return failure, or move to SkBitmapDevice only. | 280 // TODO: allow this call to return failure, or move to SkBitmapDevice only. |
| 278 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE { | 281 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE { |
| 279 return fEmptyBitmap; | 282 return fEmptyBitmap; |
| 280 } | 283 } |
| 281 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); } | 284 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); } |
| 282 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); } | 285 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 static void NotSupported() { | 320 static void NotSupported() { |
| 318 SkDEBUGFAIL("this method should never be called"); | 321 SkDEBUGFAIL("this method should never be called"); |
| 319 } | 322 } |
| 320 | 323 |
| 321 static void NothingToDo() {} | 324 static void NothingToDo() {} |
| 322 | 325 |
| 323 typedef SkBaseDevice INHERITED; | 326 typedef SkBaseDevice INHERITED; |
| 324 }; | 327 }; |
| 325 | 328 |
| 326 #endif // SkGatherPixelRefsAndRects_DEFINED | 329 #endif // SkGatherPixelRefsAndRects_DEFINED |
| OLD | NEW |