| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "SkAndroidSDKCanvas.h" | 8 #include "SkAndroidSDKCanvas.h" |
| 9 | 9 |
| 10 #include "SkColorFilter.h" | 10 #include "SkColorFilter.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 SkScalar x, | 232 SkScalar x, |
| 233 SkScalar y, | 233 SkScalar y, |
| 234 const SkPaint* paint) { | 234 const SkPaint* paint) { |
| 235 FILTER_PTR(paint); | 235 FILTER_PTR(paint); |
| 236 fProxyTarget->drawImage(image, x, y, filteredPaint); | 236 fProxyTarget->drawImage(image, x, y, filteredPaint); |
| 237 } | 237 } |
| 238 | 238 |
| 239 void SkAndroidSDKCanvas::onDrawImageRect(const SkImage* image, | 239 void SkAndroidSDKCanvas::onDrawImageRect(const SkImage* image, |
| 240 const SkRect* in, | 240 const SkRect* in, |
| 241 const SkRect& out, | 241 const SkRect& out, |
| 242 const SkPaint* paint | 242 const SkPaint* paint, |
| 243 SrcRectConstraint constraint) { | 243 SrcRectConstraint constraint) { |
| 244 FILTER_PTR(paint); | 244 FILTER_PTR(paint); |
| 245 fProxyTarget->drawImageRect(image, in, out, filteredPaint, constraint); | 245 fProxyTarget->drawImageRect(image, in, out, filteredPaint, constraint); |
| 246 } | 246 } |
| 247 | 247 |
| 248 void SkAndroidSDKCanvas::onDrawPicture(const SkPicture* picture, | 248 void SkAndroidSDKCanvas::onDrawPicture(const SkPicture* picture, |
| 249 const SkMatrix* matrix, | 249 const SkMatrix* matrix, |
| 250 const SkPaint* paint) { | 250 const SkPaint* paint) { |
| 251 FILTER_PTR(paint); | 251 FILTER_PTR(paint); |
| 252 fProxyTarget->drawPicture(picture, matrix, filteredPaint); | 252 fProxyTarget->drawPicture(picture, matrix, filteredPaint); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 fProxyTarget->clipPath(path, op, style); | 341 fProxyTarget->clipPath(path, op, style); |
| 342 } | 342 } |
| 343 | 343 |
| 344 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { | 344 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { |
| 345 fProxyTarget->clipRegion(region, op); | 345 fProxyTarget->clipRegion(region, op); |
| 346 } | 346 } |
| 347 | 347 |
| 348 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } | 348 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } |
| 349 | 349 |
| 350 | 350 |
| OLD | NEW |