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

Side by Side Diff: src/gpu/GrPrimitiveProcessor.h

Issue 1812223002: added support for glMinSampleShading (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: updated for Jim's change Created 4 years, 9 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 | « src/gpu/GrGeometryProcessor.h ('k') | src/gpu/gl/GrGLAssembleInterface.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 2013 Google Inc. 2 * Copyright 2013 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 GrPrimitiveProcessor_DEFINED 8 #ifndef GrPrimitiveProcessor_DEFINED
9 #define GrPrimitiveProcessor_DEFINED 9 #define GrPrimitiveProcessor_DEFINED
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 virtual GrPixelLocalStorageState getPixelLocalStorageState() const { 211 virtual GrPixelLocalStorageState getPixelLocalStorageState() const {
212 return kDisabled_GrPixelLocalStorageState; 212 return kDisabled_GrPixelLocalStorageState;
213 } 213 }
214 214
215 /** 215 /**
216 * If non-null, overrides the dest color returned by GrGLSLFragmentShaderBui lder::dstColor(). 216 * If non-null, overrides the dest color returned by GrGLSLFragmentShaderBui lder::dstColor().
217 */ 217 */
218 virtual const char* getDestColorOverride() const { return nullptr; } 218 virtual const char* getDestColorOverride() const { return nullptr; }
219 219
220 virtual float getSampleShading() const {
221 return 0.0;
222 }
223
220 protected: 224 protected:
221 GrPrimitiveProcessor() : fVertexStride(0) {} 225 GrPrimitiveProcessor() : fVertexStride(0) {}
222 226
223 enum { kPreallocAttribCnt = 8 }; 227 enum { kPreallocAttribCnt = 8 };
224 SkSTArray<kPreallocAttribCnt, Attribute> fAttribs; 228 SkSTArray<kPreallocAttribCnt, Attribute> fAttribs;
225 size_t fVertexStride; 229 size_t fVertexStride;
226 230
227 private: 231 private:
228 void notifyRefCntIsZero() const final {}; 232 void notifyRefCntIsZero() const final {};
229 virtual bool hasExplicitLocalCoords() const = 0; 233 virtual bool hasExplicitLocalCoords() const = 0;
230 234
231 typedef GrProcessor INHERITED; 235 typedef GrProcessor INHERITED;
232 }; 236 };
233 237
234 #endif 238 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGeometryProcessor.h ('k') | src/gpu/gl/GrGLAssembleInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698