| OLD | NEW |
| 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 Loading... |
| 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 InitBT&) const SK_OVERRIDE; | 46 void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const SK_OVERR
IDE; |
| 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 |
| OLD | NEW |