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

Side by Side Diff: include/gpu/GrBackendEffectFactory.h

Issue 303463009: Remove SkThread.h from public API. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rest Created 6 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
« no previous file with comments | « include/core/SkWeakRefCnt.h ('k') | src/core/SkThread.h » ('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 2012 Google Inc. 2 * Copyright 2012 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 GrBackendEffectFactory_DEFINED 8 #ifndef GrBackendEffectFactory_DEFINED
9 #define GrBackendEffectFactory_DEFINED 9 #define GrBackendEffectFactory_DEFINED
10 10
11 #include "GrTypes.h" 11 #include "GrTypes.h"
12 #include "SkTemplates.h" 12 #include "SkTemplates.h"
13 #include "SkThread.h"
14 #include "SkTypes.h" 13 #include "SkTypes.h"
15 14
15 #include "../../src/core/SkThread.h"
16
16 /** Given a GrEffect of a particular type, creates the corresponding graphics-ba ckend-specific 17 /** Given a GrEffect of a particular type, creates the corresponding graphics-ba ckend-specific
17 effect object. Also tracks equivalence of shaders generated via a key. Each factory instance 18 effect object. Also tracks equivalence of shaders generated via a key. Each factory instance
18 is assigned a generation ID at construction. The ID of the return of GrEffec t::getFactory() 19 is assigned a generation ID at construction. The ID of the return of GrEffec t::getFactory()
19 is used as a type identifier. Thus a GrEffect subclass must return a singlet on from 20 is used as a type identifier. Thus a GrEffect subclass must return a singlet on from
20 getFactory(). GrEffect subclasses should use the derived class GrTBackendEff ectFactory that is 21 getFactory(). GrEffect subclasses should use the derived class GrTBackendEff ectFactory that is
21 templated on the GrEffect subclass as their factory object. It requires that the GrEffect 22 templated on the GrEffect subclass as their factory object. It requires that the GrEffect
22 subclass has a nested class (or typedef) GLEffect which is its GL implementa tion and a subclass 23 subclass has a nested class (or typedef) GLEffect which is its GL implementa tion and a subclass
23 of GrGLEffect. 24 of GrGLEffect.
24 */ 25 */
25 26
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 return static_cast<EffectKey>(id); 82 return static_cast<EffectKey>(id);
82 } 83 }
83 84
84 EffectKey fEffectClassID; 85 EffectKey fEffectClassID;
85 86
86 private: 87 private:
87 static int32_t fCurrEffectClassID; 88 static int32_t fCurrEffectClassID;
88 }; 89 };
89 90
90 #endif 91 #endif
OLDNEW
« no previous file with comments | « include/core/SkWeakRefCnt.h ('k') | src/core/SkThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698