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

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

Issue 1215643006: more threading of GrShaderDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@GrShaderDataManager3
Patch Set: tweaks Created 5 years, 5 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
« no previous file with comments | « include/core/SkXfermode.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 GrFragmentProcessor; 13 class GrFragmentProcessor;
14 class GrTexture; 14 class GrTexture;
15 15
16 /** 16 /**
17 * Custom Xfer modes are used for blending when the blend mode cannot be represe nted using blend 17 * Custom Xfer modes are used for blending when the blend mode cannot be represe nted using blend
18 * coefficients. It is assumed that all blending is done within the processors' emit code. For each 18 * coefficients. It is assumed that all blending is done within the processors' emit code. For each
19 * blend mode there should be a matching fragment processor (used when blending with a background 19 * blend mode there should be a matching fragment processor (used when blending with a background
20 * texture) and xfer processor. 20 * texture) and xfer processor.
21 */ 21 */
22 namespace GrCustomXfermode { 22 namespace GrCustomXfermode {
23 bool IsSupportedMode(SkXfermode::Mode mode); 23 bool IsSupportedMode(SkXfermode::Mode mode);
24 24
25 GrFragmentProcessor* CreateFP(SkXfermode::Mode mode, GrTexture* background); 25 GrFragmentProcessor* CreateFP(GrShaderDataManager*, SkXfermode::Mode mode,
26 GrTexture* background);
26 27
27 GrXPFactory* CreateXPFactory(SkXfermode::Mode mode); 28 GrXPFactory* CreateXPFactory(SkXfermode::Mode mode);
28 }; 29 };
29 30
30 #endif 31 #endif
OLDNEW
« no previous file with comments | « include/core/SkXfermode.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698