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

Side by Side Diff: tools/debugger/SkOverdrawMode.cpp

Issue 1832223002: switch xfermodes over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 8 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 2016 Google Inc. 2 * Copyright 2016 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 "SkColorPriv.h" 8 #include "SkColorPriv.h"
9 #include "SkOverdrawMode.h" 9 #include "SkOverdrawMode.h"
10 #include "SkString.h" 10 #include "SkString.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 void flatten(SkWriteBuffer& buffer) const override { } 311 void flatten(SkWriteBuffer& buffer) const override { }
312 312
313 typedef SkXfermode INHERITED; 313 typedef SkXfermode INHERITED;
314 }; 314 };
315 315
316 SkFlattenable* SkOverdrawXfermode::CreateProc(SkReadBuffer& buffer) { 316 SkFlattenable* SkOverdrawXfermode::CreateProc(SkReadBuffer& buffer) {
317 return Create(); 317 return Create();
318 } 318 }
319 319
320 SkXfermode* SkOverdrawMode::Create() { return new SkOverdrawXfermode; } 320 sk_sp<SkXfermode> SkOverdrawMode::Make() { return sk_make_sp<SkOverdrawXfermode> (); }
321 321
322 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkOverdrawMode) 322 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkOverdrawMode)
323 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOverdrawXfermode) 323 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOverdrawXfermode)
324 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 324 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« include/effects/SkXfermodeImageFilter.h ('K') | « tools/debugger/SkOverdrawMode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698