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

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

Issue 20806003: Plumb in "bleed" flag (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Updated .skp version number Created 7 years, 4 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
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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 return; 851 return;
852 } 852 }
853 SkPDFUtils::EmitPath(*pathPtr, paint.getStyle(), 853 SkPDFUtils::EmitPath(*pathPtr, paint.getStyle(),
854 &content.entry()->fContent); 854 &content.entry()->fContent);
855 SkPDFUtils::PaintPath(paint.getStyle(), pathPtr->getFillType(), 855 SkPDFUtils::PaintPath(paint.getStyle(), pathPtr->getFillType(),
856 &content.entry()->fContent); 856 &content.entry()->fContent);
857 } 857 }
858 858
859 void SkPDFDevice::drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, 859 void SkPDFDevice::drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap,
860 const SkRect* src, const SkRect& dst, 860 const SkRect* src, const SkRect& dst,
861 const SkPaint& paint) { 861 const SkPaint& paint,
862 SkCanvas::DrawBitmapRectFlags flags) {
edisonn 2013/07/29 14:51:14 add a todo here to implement the flag
robertphillips 2013/07/29 15:27:32 Done.
862 SkMatrix matrix; 863 SkMatrix matrix;
863 SkRect bitmapBounds, tmpSrc, tmpDst; 864 SkRect bitmapBounds, tmpSrc, tmpDst;
864 SkBitmap tmpBitmap; 865 SkBitmap tmpBitmap;
865 866
866 bitmapBounds.isetWH(bitmap.width(), bitmap.height()); 867 bitmapBounds.isetWH(bitmap.width(), bitmap.height());
867 868
868 // Compute matrix from the two rectangles 869 // Compute matrix from the two rectangles
869 if (src) { 870 if (src) {
870 tmpSrc = *src; 871 tmpSrc = *src;
871 } else { 872 } else {
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 } 1752 }
1752 1753
1753 bool SkPDFDevice::onReadPixels(const SkBitmap& bitmap, int x, int y, 1754 bool SkPDFDevice::onReadPixels(const SkBitmap& bitmap, int x, int y,
1754 SkCanvas::Config8888) { 1755 SkCanvas::Config8888) {
1755 return false; 1756 return false;
1756 } 1757 }
1757 1758
1758 bool SkPDFDevice::allowImageFilter(SkImageFilter*) { 1759 bool SkPDFDevice::allowImageFilter(SkImageFilter*) {
1759 return false; 1760 return false;
1760 } 1761 }
OLDNEW
« src/core/SkPicture.cpp ('K') | « src/gpu/SkGpuDevice.cpp ('k') | src/pipe/SkGPipePriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698