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

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

Issue 1332923003: Remove batchtracker (Closed) Base URL: https://skia.googlesource.com/skia.git@latecreatepathprocessor
Patch Set: tweaks Created 5 years, 3 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 23 matching lines...) Expand all
34 const Attribute* inPosition() const { return fInPosition; } 34 const Attribute* inPosition() const { return fInPosition; }
35 const Attribute* inColor() const { return fInColor; } 35 const Attribute* inColor() const { return fInColor; }
36 const Attribute* inTextureCoords() const { return fInTextureCoords; } 36 const Attribute* inTextureCoords() const { return fInTextureCoords; }
37 GrMaskFormat maskFormat() const { return fMaskFormat; } 37 GrMaskFormat maskFormat() const { return fMaskFormat; }
38 GrColor color() const { return fColor; } 38 GrColor color() const { return fColor; }
39 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; } 39 bool colorIgnored() const { return GrColor_ILLEGAL == fColor; }
40 bool hasVertexColor() const { return SkToBool(fInColor); } 40 bool hasVertexColor() const { return SkToBool(fInColor); }
41 const SkMatrix& localMatrix() const { return fLocalMatrix; } 41 const SkMatrix& localMatrix() const { return fLocalMatrix; }
42 bool usesLocalCoords() const { return fUsesLocalCoords; } 42 bool usesLocalCoords() const { return fUsesLocalCoords; }
43 43
44 virtual void getGLProcessorKey(const GrBatchTracker& bt, 44 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
45 const GrGLSLCaps& caps,
46 GrProcessorKeyBuilder* b) const override;
47 45
48 virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, 46 GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps& caps) const overr ide;
49 const GrGLSLCaps& caps) con st override;
50 47
51 private: 48 private:
52 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms, 49 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms,
53 GrMaskFormat format, const SkMatrix& localMatrix, bool u sesLocalCoords); 50 GrMaskFormat format, const SkMatrix& localMatrix, bool u sesLocalCoords);
54 51
55 GrColor fColor; 52 GrColor fColor;
56 SkMatrix fLocalMatrix; 53 SkMatrix fLocalMatrix;
57 bool fUsesLocalCoords; 54 bool fUsesLocalCoords;
58 GrTextureAccess fTextureAccess; 55 GrTextureAccess fTextureAccess;
59 const Attribute* fInPosition; 56 const Attribute* fInPosition;
60 const Attribute* fInColor; 57 const Attribute* fInColor;
61 const Attribute* fInTextureCoords; 58 const Attribute* fInTextureCoords;
62 GrMaskFormat fMaskFormat; 59 GrMaskFormat fMaskFormat;
63 60
64 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 61 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
65 62
66 typedef GrGeometryProcessor INHERITED; 63 typedef GrGeometryProcessor INHERITED;
67 }; 64 };
68 65
69 #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