| 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 "SkPaint.h" | |
| 12 #include "SkPathEffect.h" | 11 #include "SkPathEffect.h" |
| 13 #include "SkShader.h" | 12 #include "SkShader.h" |
| 14 #include "SkTLazy.h" | |
| 15 | 13 |
| 16 namespace { | 14 namespace { |
| 17 | 15 |
| 18 /** Discard SkShaders not exposed by the Android Java API. */ | 16 /** Discard SkShaders not exposed by the Android Java API. */ |
| 19 | 17 |
| 20 void CheckShader(SkPaint* paint) { | 18 void CheckShader(SkPaint* paint) { |
| 21 SkShader* shader = paint->getShader(); | 19 SkShader* shader = paint->getShader(); |
| 22 if (!shader) { | 20 if (!shader) { |
| 23 return; | 21 return; |
| 24 } | 22 } |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 fProxyTarget->clipPath(path, op, style); | 341 fProxyTarget->clipPath(path, op, style); |
| 344 } | 342 } |
| 345 | 343 |
| 346 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { | 344 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { |
| 347 fProxyTarget->clipRegion(region, op); | 345 fProxyTarget->clipRegion(region, op); |
| 348 } | 346 } |
| 349 | 347 |
| 350 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } | 348 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } |
| 351 | 349 |
| 352 | 350 |
| OLD | NEW |