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

Side by Side Diff: include/gpu/effects/GrCustomXfermode.h

Issue 2041113004: sk_sp for gpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reserve correctly. Created 4 years, 6 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 2015 Google Inc. 2 * Copyright 2015 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 #ifndef GrCustomXfermode_DEFINED 8 #ifndef GrCustomXfermode_DEFINED
9 #define GrCustomXfermode_DEFINED 9 #define GrCustomXfermode_DEFINED
10 10
11 #include "SkXfermode.h" 11 #include "SkXfermode.h"
12 12
13 class GrTexture; 13 class GrTexture;
14 14
15 /** 15 /**
16 * Custom Xfer modes are used for blending when the blend mode cannot be represe nted using blend 16 * Custom Xfer modes are used for blending when the blend mode cannot be represe nted using blend
17 * coefficients. 17 * coefficients.
18 */ 18 */
19 namespace GrCustomXfermode { 19 namespace GrCustomXfermode {
20 bool IsSupportedMode(SkXfermode::Mode mode); 20 bool IsSupportedMode(SkXfermode::Mode mode);
21 GrXPFactory* CreateXPFactory(SkXfermode::Mode mode); 21 sk_sp<GrXPFactory> MakeXPFactory(SkXfermode::Mode mode);
22 }; 22 };
23 23
24 #endif 24 #endif
OLDNEW
« no previous file with comments | « include/gpu/effects/GrCoverageSetOpXP.h ('k') | include/gpu/effects/GrPorterDuffXferProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698