| 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 #include "SkPDFDevice.h" | 8 #include "SkPDFDevice.h" |
| 9 | 9 |
| 10 #include "SkAnnotation.h" | 10 #include "SkAnnotation.h" |
| (...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 } | 1334 } |
| 1335 | 1335 |
| 1336 void SkPDFDevice::drawVertices(const SkDraw& d, SkCanvas::VertexMode, | 1336 void SkPDFDevice::drawVertices(const SkDraw& d, SkCanvas::VertexMode, |
| 1337 int vertexCount, const SkPoint verts[], | 1337 int vertexCount, const SkPoint verts[], |
| 1338 const SkPoint texs[], const SkColor colors[], | 1338 const SkPoint texs[], const SkColor colors[], |
| 1339 SkXfermode* xmode, const uint16_t indices[], | 1339 SkXfermode* xmode, const uint16_t indices[], |
| 1340 int indexCount, const SkPaint& paint) { | 1340 int indexCount, const SkPaint& paint) { |
| 1341 if (d.fClip->isEmpty()) { | 1341 if (d.fClip->isEmpty()) { |
| 1342 return; | 1342 return; |
| 1343 } | 1343 } |
| 1344 NOT_IMPLEMENTED("drawVerticies", true); | 1344 // TODO: implement drawVertices |
| 1345 } | 1345 } |
| 1346 | 1346 |
| 1347 void SkPDFDevice::drawDevice(const SkDraw& d, SkBaseDevice* device, | 1347 void SkPDFDevice::drawDevice(const SkDraw& d, SkBaseDevice* device, |
| 1348 int x, int y, const SkPaint& paint) { | 1348 int x, int y, const SkPaint& paint) { |
| 1349 if ((device->getDeviceCapabilities() & kVector_Capability) == 0) { | 1349 if ((device->getDeviceCapabilities() & kVector_Capability) == 0) { |
| 1350 // If we somehow get a raster device, do what our parent would do. | 1350 // If we somehow get a raster device, do what our parent would do. |
| 1351 INHERITED::drawDevice(d, device, x, y, paint); | 1351 INHERITED::drawDevice(d, device, x, y, paint); |
| 1352 return; | 1352 return; |
| 1353 } | 1353 } |
| 1354 | 1354 |
| (...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2328 } | 2328 } |
| 2329 | 2329 |
| 2330 bool SkPDFDevice::onReadPixels(const SkBitmap& bitmap, int x, int y, | 2330 bool SkPDFDevice::onReadPixels(const SkBitmap& bitmap, int x, int y, |
| 2331 SkCanvas::Config8888) { | 2331 SkCanvas::Config8888) { |
| 2332 return false; | 2332 return false; |
| 2333 } | 2333 } |
| 2334 | 2334 |
| 2335 bool SkPDFDevice::allowImageFilter(SkImageFilter*) { | 2335 bool SkPDFDevice::allowImageFilter(SkImageFilter*) { |
| 2336 return false; | 2336 return false; |
| 2337 } | 2337 } |
| OLD | NEW |