OLD | NEW |
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 Loading... |
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 |
OLD | NEW |