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

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

Issue 764643004: Create xfer processor backend. (Closed) Base URL: https://skia.googlesource.com/skia.git@xferBlendSolo
Patch Set: Blend off ODS and only on XP Created 6 years 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/gpu/effects/GrPorterDuffXferProcessor.h ('k') | src/gpu/GrOptDrawState.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 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 GrGeometryProcessor_DEFINED 8 #ifndef GrGeometryProcessor_DEFINED
9 #define GrGeometryProcessor_DEFINED 9 #define GrGeometryProcessor_DEFINED
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 : fVertexStride(0) 55 : fVertexStride(0)
56 , fColor(color) 56 , fColor(color)
57 , fCoverage(coverage) 57 , fCoverage(coverage)
58 , fWillUseGeoShader(false) 58 , fWillUseGeoShader(false)
59 , fHasVertexColor(false) 59 , fHasVertexColor(false)
60 , fHasVertexCoverage(false) 60 , fHasVertexCoverage(false)
61 , fHasLocalCoords(false) {} 61 , fHasLocalCoords(false) {}
62 62
63 virtual const char* name() const = 0; 63 virtual const char* name() const = 0;
64 64
65 /** Implemented using GLProcessor::GenKey as described in this class's comme nt. */ 65 /**
66 * Sets a unique key on the GrProcessorKeyBuilder that is directly associate d with this geometry
67 * processor's GL backend implementation.
68 */
66 virtual void getGLProcessorKey(const GrBatchTracker& bt, 69 virtual void getGLProcessorKey(const GrBatchTracker& bt,
67 const GrGLCaps& caps, 70 const GrGLCaps& caps,
68 GrProcessorKeyBuilder* b) const = 0; 71 GrProcessorKeyBuilder* b) const = 0;
69 72
70 73
71 /** Returns a new instance of the appropriate *GL* implementation class 74 /** Returns a new instance of the appropriate *GL* implementation class
72 for the given GrProcessor; caller is responsible for deleting 75 for the given GrProcessor; caller is responsible for deleting
73 the object. */ 76 the object. */
74 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co nst = 0; 77 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co nst = 0;
75 78
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 GrColor fColor; 171 GrColor fColor;
169 uint8_t fCoverage; 172 uint8_t fCoverage;
170 bool fWillUseGeoShader; 173 bool fWillUseGeoShader;
171 bool fHasVertexColor; 174 bool fHasVertexColor;
172 bool fHasVertexCoverage; 175 bool fHasVertexCoverage;
173 bool fHasLocalCoords; 176 bool fHasLocalCoords;
174 177
175 typedef GrProcessor INHERITED; 178 typedef GrProcessor INHERITED;
176 }; 179 };
177 #endif 180 #endif
OLDNEW
« no previous file with comments | « include/gpu/effects/GrPorterDuffXferProcessor.h ('k') | src/gpu/GrOptDrawState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698