| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 fProxyTarget->drawImageRect(image, in, out, filteredPaint); | 244 fProxyTarget->drawImageRect(image, in, out, filteredPaint); |
| 245 } | 245 } |
| 246 | 246 |
| 247 void SkAndroidSDKCanvas::onDrawPicture(const SkPicture* picture, | 247 void SkAndroidSDKCanvas::onDrawPicture(const SkPicture* picture, |
| 248 const SkMatrix* matrix, | 248 const SkMatrix* matrix, |
| 249 const SkPaint* paint) { | 249 const SkPaint* paint) { |
| 250 FILTER_PTR(paint); | 250 FILTER_PTR(paint); |
| 251 fProxyTarget->drawPicture(picture, matrix, filteredPaint); | 251 fProxyTarget->drawPicture(picture, matrix, filteredPaint); |
| 252 } | 252 } |
| 253 | 253 |
| 254 void SkAndroidSDKCanvas::onDrawDrawable(SkDrawable* drawable) { | 254 void SkAndroidSDKCanvas::onDrawDrawable(SkDrawable* drawable, const SkMatrix* ma
trix) { |
| 255 fProxyTarget->drawDrawable(drawable); | 255 fProxyTarget->drawDrawable(drawable, matrix); |
| 256 } | 256 } |
| 257 | 257 |
| 258 SkISize SkAndroidSDKCanvas::getBaseLayerSize() const { | 258 SkISize SkAndroidSDKCanvas::getBaseLayerSize() const { |
| 259 return fProxyTarget->getBaseLayerSize(); | 259 return fProxyTarget->getBaseLayerSize(); |
| 260 } | 260 } |
| 261 bool SkAndroidSDKCanvas::getClipBounds(SkRect* rect) const { | 261 bool SkAndroidSDKCanvas::getClipBounds(SkRect* rect) const { |
| 262 return fProxyTarget->getClipBounds(rect); | 262 return fProxyTarget->getClipBounds(rect); |
| 263 } | 263 } |
| 264 bool SkAndroidSDKCanvas::getClipDeviceBounds(SkIRect* rect) const { | 264 bool SkAndroidSDKCanvas::getClipDeviceBounds(SkIRect* rect) const { |
| 265 return fProxyTarget->getClipDeviceBounds(rect); | 265 return fProxyTarget->getClipDeviceBounds(rect); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 fProxyTarget->clipPath(path, op, style); | 340 fProxyTarget->clipPath(path, op, style); |
| 341 } | 341 } |
| 342 | 342 |
| 343 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { | 343 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { |
| 344 fProxyTarget->clipRegion(region, op); | 344 fProxyTarget->clipRegion(region, op); |
| 345 } | 345 } |
| 346 | 346 |
| 347 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } | 347 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } |
| 348 | 348 |
| 349 | 349 |
| OLD | NEW |