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

Side by Side Diff: src/animator/SkDrawDiscrete.cpp

Issue 1820593002: disable SK_SUPPORT_LEGACY_PATHEFFECT_PTR for skia builds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « src/animator/SkDrawDash.cpp ('k') | src/animator/SkDrawExtraPathEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkDrawDiscrete.h" 10 #include "SkDrawDiscrete.h"
(...skipping 12 matching lines...) Expand all
23 23
24 DEFINE_GET_MEMBER(SkDiscrete); 24 DEFINE_GET_MEMBER(SkDiscrete);
25 25
26 SkDiscrete::SkDiscrete() : deviation(0), segLength(0) { 26 SkDiscrete::SkDiscrete() : deviation(0), segLength(0) {
27 } 27 }
28 28
29 SkPathEffect* SkDiscrete::getPathEffect() { 29 SkPathEffect* SkDiscrete::getPathEffect() {
30 if (deviation <= 0 || segLength <= 0) 30 if (deviation <= 0 || segLength <= 0)
31 return nullptr; 31 return nullptr;
32 else 32 else
33 return SkDiscretePathEffect::Create(segLength, deviation); 33 return SkDiscretePathEffect::Make(segLength, deviation).release();
34 } 34 }
OLDNEW
« no previous file with comments | « src/animator/SkDrawDash.cpp ('k') | src/animator/SkDrawExtraPathEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698