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

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

Issue 820523002: initial changes to add local matrix to primitive processor (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup-ccm-above-context
Patch Set: cleanup 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 23 matching lines...) Expand all
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; 43 void initBatchTracker(GrBatchTracker*, const InitBT&) const SK_OVERRIDE;
44 bool onCanMakeEqual(const GrBatchTracker&, const GrBatchTracker&) const SK_O VERRIDE; 44 bool onCanMakeEqual(const GrBatchTracker&,
45 const GrGeometryProcessor&,
46 const GrBatchTracker&) const SK_OVERRIDE;
45 47
46 private: 48 private:
47 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms, 49 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms,
48 bool useColorAttrib, bool opaqueVertexColors); 50 bool useColorAttrib, bool opaqueVertexColors);
49 51
50 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; 52 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;
51 53
52 virtual void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_O VERRIDE; 54 virtual void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_O VERRIDE;
53 55
54 GrTextureAccess fTextureAccess; 56 GrTextureAccess fTextureAccess;
55 const GrAttribute* fInPosition; 57 const GrAttribute* fInPosition;
56 const GrAttribute* fInColor; 58 const GrAttribute* fInColor;
57 const GrAttribute* fInTextureCoords; 59 const GrAttribute* fInTextureCoords;
58 60
59 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 61 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
60 62
61 typedef GrGeometryProcessor INHERITED; 63 typedef GrGeometryProcessor INHERITED;
62 }; 64 };
63 65
64 #endif 66 #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