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

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

Issue 862823004: Revert of GrBatchPrototype (Closed) Base URL: https://skia.googlesource.com/skia.git@lc2
Patch Set: Created 5 years, 10 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/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 25 matching lines...) Expand all
36 const Attribute* inColor() const { return fInColor; } 36 const Attribute* inColor() const { return fInColor; }
37 const Attribute* inTextureCoords() const { return fInTextureCoords; } 37 const Attribute* inTextureCoords() const { return fInTextureCoords; }
38 38
39 virtual void getGLProcessorKey(const GrBatchTracker& bt, 39 virtual void getGLProcessorKey(const GrBatchTracker& bt,
40 const GrGLCaps& caps, 40 const GrGLCaps& caps,
41 GrProcessorKeyBuilder* b) const SK_OVERRIDE; 41 GrProcessorKeyBuilder* b) const SK_OVERRIDE;
42 42
43 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 43 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt,
44 const GrGLCaps& caps) const SK_OVERRIDE; 44 const GrGLCaps& caps) const SK_OVERRIDE;
45 45
46 void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const SK_OVERR IDE; 46 void initBatchTracker(GrBatchTracker*, const InitBT&) const SK_OVERRIDE;
47 bool onCanMakeEqual(const GrBatchTracker&, 47 bool onCanMakeEqual(const GrBatchTracker&,
48 const GrGeometryProcessor&, 48 const GrGeometryProcessor&,
49 const GrBatchTracker&) const SK_OVERRIDE; 49 const GrBatchTracker&) const SK_OVERRIDE;
50 50
51 private: 51 private:
52 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms, 52 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms,
53 bool useColorAttrib, bool opaqueVertexColors, const SkMa trix& localMatrix); 53 bool useColorAttrib, bool opaqueVertexColors, const SkMa trix& localMatrix);
54 54
55 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; 55 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;
56 56
57 void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_OVERRIDE; 57 void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_OVERRIDE;
58 58
59 GrTextureAccess fTextureAccess; 59 GrTextureAccess fTextureAccess;
60 const Attribute* fInPosition; 60 const Attribute* fInPosition;
61 const Attribute* fInColor; 61 const Attribute* fInColor;
62 const Attribute* fInTextureCoords; 62 const Attribute* fInTextureCoords;
63 63
64 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 64 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
65 65
66 typedef GrGeometryProcessor INHERITED; 66 typedef GrGeometryProcessor INHERITED;
67 }; 67 };
68 68
69 #endif 69 #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