| 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" |
| 11 #include "SkDrawLooper.h" |
| 11 #include "SkPaint.h" | 12 #include "SkPaint.h" |
| 12 #include "SkPathEffect.h" | 13 #include "SkPathEffect.h" |
| 13 #include "SkShader.h" | 14 #include "SkShader.h" |
| 14 #include "SkTLazy.h" | 15 #include "SkTLazy.h" |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 /** Discard SkShaders not exposed by the Android Java API. */ | 19 /** Discard SkShaders not exposed by the Android Java API. */ |
| 19 | 20 |
| 20 void CheckShader(SkPaint* paint) { | 21 void CheckShader(SkPaint* paint) { |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 fProxyTarget->clipPath(path, op, style); | 349 fProxyTarget->clipPath(path, op, style); |
| 349 } | 350 } |
| 350 | 351 |
| 351 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { | 352 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { |
| 352 fProxyTarget->clipRegion(region, op); | 353 fProxyTarget->clipRegion(region, op); |
| 353 } | 354 } |
| 354 | 355 |
| 355 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } | 356 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } |
| 356 | 357 |
| 357 | 358 |
| OLD | NEW |