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

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

Issue 200223008: Remove SkCanvas matrix ops return value. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated per comments Created 6 years, 9 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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 976
977 SkMatrix matrix = *d.fMatrix; 977 SkMatrix matrix = *d.fMatrix;
978 if (prePathMatrix) { 978 if (prePathMatrix) {
979 if (paint.getPathEffect() || paint.getStyle() != SkPaint::kFill_Style) { 979 if (paint.getPathEffect() || paint.getStyle() != SkPaint::kFill_Style) {
980 if (!pathIsMutable) { 980 if (!pathIsMutable) {
981 pathPtr = &modifiedPath; 981 pathPtr = &modifiedPath;
982 pathIsMutable = true; 982 pathIsMutable = true;
983 } 983 }
984 origPath.transform(*prePathMatrix, pathPtr); 984 origPath.transform(*prePathMatrix, pathPtr);
985 } else { 985 } else {
986 if (!matrix.preConcat(*prePathMatrix)) { 986 matrix.preConcat(*prePathMatrix);
987 // TODO(edisonn): report somehow why we failed?
988 return;
989 }
990 } 987 }
991 } 988 }
992 989
993 if (paint.getPathEffect()) { 990 if (paint.getPathEffect()) {
994 if (d.fClip->isEmpty()) { 991 if (d.fClip->isEmpty()) {
995 return; 992 return;
996 } 993 }
997 if (!pathIsMutable) { 994 if (!pathIsMutable) {
998 pathPtr = &modifiedPath; 995 pathPtr = &modifiedPath;
999 pathIsMutable = true; 996 pathIsMutable = true;
(...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2311 } 2308 }
2312 2309
2313 bool SkPDFDevice::onReadPixels(const SkBitmap& bitmap, int x, int y, 2310 bool SkPDFDevice::onReadPixels(const SkBitmap& bitmap, int x, int y,
2314 SkCanvas::Config8888) { 2311 SkCanvas::Config8888) {
2315 return false; 2312 return false;
2316 } 2313 }
2317 2314
2318 bool SkPDFDevice::allowImageFilter(const SkImageFilter*) { 2315 bool SkPDFDevice::allowImageFilter(const SkImageFilter*) {
2319 return false; 2316 return false;
2320 } 2317 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698