| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 SkScalar left, | 136 SkScalar left, |
| 137 SkScalar top, | 137 SkScalar top, |
| 138 const SkPaint* paint) { | 138 const SkPaint* paint) { |
| 139 FILTER_PTR(paint); | 139 FILTER_PTR(paint); |
| 140 fProxyTarget->drawBitmap(bitmap, left, top, filteredPaint); | 140 fProxyTarget->drawBitmap(bitmap, left, top, filteredPaint); |
| 141 } | 141 } |
| 142 void SkAndroidSDKCanvas::onDrawBitmapRect(const SkBitmap& bitmap, | 142 void SkAndroidSDKCanvas::onDrawBitmapRect(const SkBitmap& bitmap, |
| 143 const SkRect* src, | 143 const SkRect* src, |
| 144 const SkRect& dst, | 144 const SkRect& dst, |
| 145 const SkPaint* paint, | 145 const SkPaint* paint, |
| 146 SK_VIRTUAL_CONSTRAINT_TYPE co
nstraint) { | 146 SkCanvas::SrcRectConstraint c
onstraint) { |
| 147 FILTER_PTR(paint); | 147 FILTER_PTR(paint); |
| 148 fProxyTarget->drawBitmapRect(bitmap, src, dst, filteredPaint, | 148 fProxyTarget->drawBitmapRect(bitmap, src, dst, filteredPaint, constraint); |
| 149 (SrcRectConstraint)constraint); | |
| 150 } | 149 } |
| 151 void SkAndroidSDKCanvas::onDrawBitmapNine(const SkBitmap& bitmap, | 150 void SkAndroidSDKCanvas::onDrawBitmapNine(const SkBitmap& bitmap, |
| 152 const SkIRect& center, | 151 const SkIRect& center, |
| 153 const SkRect& dst, | 152 const SkRect& dst, |
| 154 const SkPaint* paint) { | 153 const SkPaint* paint) { |
| 155 FILTER_PTR(paint); | 154 FILTER_PTR(paint); |
| 156 fProxyTarget->drawBitmapNine(bitmap, center, dst, filteredPaint); | 155 fProxyTarget->drawBitmapNine(bitmap, center, dst, filteredPaint); |
| 157 } | 156 } |
| 158 void SkAndroidSDKCanvas::onDrawSprite(const SkBitmap& bitmap, | 157 void SkAndroidSDKCanvas::onDrawSprite(const SkBitmap& bitmap, |
| 159 int left, | 158 int left, |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 fProxyTarget->clipPath(path, op, style); | 340 fProxyTarget->clipPath(path, op, style); |
| 342 } | 341 } |
| 343 | 342 |
| 344 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { | 343 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { |
| 345 fProxyTarget->clipRegion(region, op); | 344 fProxyTarget->clipRegion(region, op); |
| 346 } | 345 } |
| 347 | 346 |
| 348 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } | 347 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } |
| 349 | 348 |
| 350 | 349 |
| OLD | NEW |