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