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

Side by Side Diff: src/gpu/effects/GrBitmapTextGeoProc.h

Issue 746423007: Draft change to start pulling uniform color into GP (Closed) Base URL: https://skia.googlesource.com/skia.git@no_factories
Patch Set: rebase 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 | « src/gpu/effects/GrBezierEffect.cpp ('k') | src/gpu/effects/GrBitmapTextGeoProc.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 GrBitmapTextGeoProc_DEFINED 8 #ifndef GrBitmapTextGeoProc_DEFINED
9 #define GrBitmapTextGeoProc_DEFINED 9 #define GrBitmapTextGeoProc_DEFINED
10 10
(...skipping 22 matching lines...) Expand all
33 const GrAttribute* inPosition() const { return fInPosition; } 33 const GrAttribute* inPosition() const { return fInPosition; }
34 const GrAttribute* inColor() const { return fInColor; } 34 const GrAttribute* inColor() const { return fInColor; }
35 const GrAttribute* inTextureCoords() const { return fInTextureCoords; } 35 const GrAttribute* inTextureCoords() const { return fInTextureCoords; }
36 36
37 virtual void getGLProcessorKey(const GrBatchTracker& bt, 37 virtual void getGLProcessorKey(const GrBatchTracker& bt,
38 const GrGLCaps& caps, 38 const GrGLCaps& caps,
39 GrProcessorKeyBuilder* b) const SK_OVERRIDE; 39 GrProcessorKeyBuilder* b) const SK_OVERRIDE;
40 40
41 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co nst SK_OVERRIDE; 41 virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) co nst SK_OVERRIDE;
42 42
43 void initBatchTracker(GrBatchTracker*, const InitBT&) const SK_OVERRIDE;
44 bool onCanMakeEqual(const GrBatchTracker&, const GrBatchTracker&) const SK_O VERRIDE;
45
43 private: 46 private:
44 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms, 47 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms,
45 bool useColorAttrib, bool opaqueVertexColors); 48 bool useColorAttrib, bool opaqueVertexColors);
46 49
47 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; 50 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;
48 51
49 virtual void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_O VERRIDE; 52 virtual void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_O VERRIDE;
50 53
51 GrTextureAccess fTextureAccess; 54 GrTextureAccess fTextureAccess;
52 const GrAttribute* fInPosition; 55 const GrAttribute* fInPosition;
53 const GrAttribute* fInColor; 56 const GrAttribute* fInColor;
54 const GrAttribute* fInTextureCoords; 57 const GrAttribute* fInTextureCoords;
55 58
56 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 59 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
57 60
58 typedef GrGeometryProcessor INHERITED; 61 typedef GrGeometryProcessor INHERITED;
59 }; 62 };
60 63
61 #endif 64 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrBezierEffect.cpp ('k') | src/gpu/effects/GrBitmapTextGeoProc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698