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

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

Issue 1441683008: Move GrGLPrimitive/GeometryProc to GLSL (Closed) Base URL: https://skia.googlesource.com/skia.git@xferProcs
Patch Set: nits Created 5 years, 1 month 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* 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 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override; 44 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
45 45
46 GrGLPrimitiveProcessor* createGLInstance(const GrGLSLCaps& caps) const overr ide; 46 GrGLSLPrimitiveProcessor* createGLInstance(const GrGLSLCaps& caps) const ove rride;
47 47
48 private: 48 private:
49 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms, 49 GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrTextureParams& para ms,
50 GrMaskFormat format, const SkMatrix& localMatrix, bool u sesLocalCoords); 50 GrMaskFormat format, const SkMatrix& localMatrix, bool u sesLocalCoords);
51 51
52 GrColor fColor; 52 GrColor fColor;
53 SkMatrix fLocalMatrix; 53 SkMatrix fLocalMatrix;
54 bool fUsesLocalCoords; 54 bool fUsesLocalCoords;
55 GrTextureAccess fTextureAccess; 55 GrTextureAccess fTextureAccess;
56 const Attribute* fInPosition; 56 const Attribute* fInPosition;
57 const Attribute* fInColor; 57 const Attribute* fInColor;
58 const Attribute* fInTextureCoords; 58 const Attribute* fInTextureCoords;
59 GrMaskFormat fMaskFormat; 59 GrMaskFormat fMaskFormat;
60 60
61 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; 61 GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
62 62
63 typedef GrGeometryProcessor INHERITED; 63 typedef GrGeometryProcessor INHERITED;
64 }; 64 };
65 65
66 #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