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

Side by Side Diff: src/gpu/effects/GrDefaultXferProcessor.h

Issue 751283002: Add XferProcessor factory in GrPaint and GrDrawState. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update gyp Created 6 years 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
(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 {
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698