Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/pdf/SkPDFDevice.cpp

Issue 112913005: reenable vertices gm, adding picture support (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | src/pipe/SkGPipePriv.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | src/pipe/SkGPipePriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698