Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2014 Google Inc. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 | |
| 8 #ifndef GrDefaultXferProcessor_DEFINED | |
| 9 #define GrDefaultXferProcessor_DEFINED | |
| 10 | |
| 11 #include "GrPorterDuffXferProcessor.h" | |
| 12 | |
| 13 class GrDefaultXPFactory : public GrPorterDuffXPFactory { | |
|
bsalomon
2014/12/01 19:24:40
Does it make sense to have this at all?
| |
| 14 public: | |
| 15 static const GrXPFactory* Create() { | |
| 16 GR_CREATE_STATIC_XP_FACTORY(gDefaultXPFactory, GrDefaultXPFactory, ()); | |
| 17 return SkRef(gDefaultXPFactory); | |
| 18 } | |
| 19 | |
| 20 private: | |
| 21 GrDefaultXPFactory() : INHERITED(SkXfermode::kOne_Coeff, SkXfermode::kZero_C oeff) {} | |
| 22 | |
| 23 typedef GrPorterDuffXPFactory INHERITED; | |
| 24 }; | |
| 25 | |
| 26 #endif | |
| 27 | |
| OLD | NEW |