Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(575)

Side by Side Diff: tools/android/SkAndroidSDKCanvas.cpp

Issue 1821533002: guard rasterizer and drawlooper setters (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update android sdk Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698