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

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

Issue 1116713002: Pull out shader-specific caps into GrShaderCaps and GrGLSLCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up some comments Created 5 years, 7 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 | « no previous file | include/gpu/GrXferProcessor.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 2014 Google Inc. 2 * Copyright 2014 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 GrFragmentProcessor_DEFINED 8 #ifndef GrFragmentProcessor_DEFINED
9 #define GrFragmentProcessor_DEFINED 9 #define GrFragmentProcessor_DEFINED
10 10
11 #include "GrProcessor.h" 11 #include "GrProcessor.h"
12 12
13 class GrCoordTransform; 13 class GrCoordTransform;
14 class GrGLCaps; 14 class GrGLSLCaps;
15 typedef GrGLCaps GrGLSLCaps;
16 class GrGLFragmentProcessor; 15 class GrGLFragmentProcessor;
17 class GrProcessorKeyBuilder; 16 class GrProcessorKeyBuilder;
18 17
19 /** Provides custom fragment shader code. Fragment processors receive an input c olor (vec4f) and 18 /** Provides custom fragment shader code. Fragment processors receive an input c olor (vec4f) and
20 produce an output color. They may reference textures and uniforms. They may use 19 produce an output color. They may reference textures and uniforms. They may use
21 GrCoordTransforms to receive a transformation of the local coordinates that map from local space 20 GrCoordTransforms to receive a transformation of the local coordinates that map from local space
22 to the fragment being processed. 21 to the fragment being processed.
23 */ 22 */
24 class GrFragmentProcessor : public GrProcessor { 23 class GrFragmentProcessor : public GrProcessor {
25 public: 24 public:
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool hasSameTransforms(const GrFragmentProcessor&) const; 125 bool hasSameTransforms(const GrFragmentProcessor&) const;
127 126
128 SkSTArray<4, const GrCoordTransform*, true> fCoordTransforms; 127 SkSTArray<4, const GrCoordTransform*, true> fCoordTransforms;
129 bool fWillUseInputColor; 128 bool fWillUseInputColor;
130 bool fUsesLocalCoords; 129 bool fUsesLocalCoords;
131 130
132 typedef GrProcessor INHERITED; 131 typedef GrProcessor INHERITED;
133 }; 132 };
134 133
135 #endif 134 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrXferProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698