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

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

Issue 822423004: Move most of the transform logic into the primitive processors (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup Created 5 years, 11 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 22 matching lines...) Expand all
33 const char* name() const SK_OVERRIDE { return "Texture"; } 33 const char* name() const SK_OVERRIDE { return "Texture"; }
34 34
35 const GrAttribute* inPosition() const { return fInPosition; } 35 const GrAttribute* inPosition() const { return fInPosition; }
36 const GrAttribute* inColor() const { return fInColor; } 36 const GrAttribute* inColor() const { return fInColor; }
37 const GrAttribute* inTextureCoords() const { return fInTextureCoords; } 37 const GrAttribute* 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 GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) const SK_O VERRIDE; 43 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt,
44 const GrGLCaps& caps) const SK_OVERRIDE;
44 45
45 void initBatchTracker(GrBatchTracker*, const InitBT&) const SK_OVERRIDE; 46 void initBatchTracker(GrBatchTracker*, const InitBT&) const SK_OVERRIDE;
46 bool onCanMakeEqual(const GrBatchTracker&, 47 bool onCanMakeEqual(const GrBatchTracker&,
47 const GrGeometryProcessor&, 48 const GrGeometryProcessor&,
48 const GrBatchTracker&) const SK_OVERRIDE; 49 const GrBatchTracker&) const SK_OVERRIDE;
49 50
50 private: 51 private:
51 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms, 52 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms,
52 bool useColorAttrib, bool opaqueVertexColors, const SkMa trix& localMatrix); 53 bool useColorAttrib, bool opaqueVertexColors, const SkMa trix& localMatrix);
53 54
54 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; 55 bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;
55 56
56 void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_OVERRIDE; 57 void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_OVERRIDE;
57 58
58 GrTextureAccess fTextureAccess; 59 GrTextureAccess fTextureAccess;
59 const GrAttribute* fInPosition; 60 const GrAttribute* fInPosition;
60 const GrAttribute* fInColor; 61 const GrAttribute* fInColor;
61 const GrAttribute* fInTextureCoords; 62 const GrAttribute* fInTextureCoords;
62 63
63 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 64 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
64 65
65 typedef GrGeometryProcessor INHERITED; 66 typedef GrGeometryProcessor INHERITED;
66 }; 67 };
67 68
68 #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