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

Side by Side Diff: src/gpu/GrPathProcessor.h

Issue 2327613002: Remove GrPrimitiveProcessor::hasTransformedLocalCoords (Closed)
Patch Set: Created 4 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/GrGeometryProcessor.h ('k') | src/gpu/GrPrimitiveProcessor.h » ('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 GrPathProcessor_DEFINED 8 #ifndef GrPathProcessor_DEFINED
9 #define GrPathProcessor_DEFINED 9 #define GrPathProcessor_DEFINED
10 10
(...skipping 18 matching lines...) Expand all
29 const SkMatrix& viewMatrix() const { return fViewMatrix; } 29 const SkMatrix& viewMatrix() const { return fViewMatrix; }
30 const SkMatrix& localMatrix() const { return fLocalMatrix; } 30 const SkMatrix& localMatrix() const { return fLocalMatrix; }
31 31
32 bool willUseGeoShader() const override { return false; } 32 bool willUseGeoShader() const override { return false; }
33 33
34 virtual void getGLSLProcessorKey(const GrGLSLCaps& caps, 34 virtual void getGLSLProcessorKey(const GrGLSLCaps& caps,
35 GrProcessorKeyBuilder* b) const override; 35 GrProcessorKeyBuilder* b) const override;
36 36
37 virtual GrGLSLPrimitiveProcessor* createGLSLInstance(const GrGLSLCaps& caps) const override; 37 virtual GrGLSLPrimitiveProcessor* createGLSLInstance(const GrGLSLCaps& caps) const override;
38 38
39 bool hasTransformedLocalCoords() const override { return false; }
40
41 const GrXPOverridesForBatch& overrides() const { return fOverrides; } 39 const GrXPOverridesForBatch& overrides() const { return fOverrides; }
42 40
43 virtual bool isPathRendering() const override { return true; } 41 virtual bool isPathRendering() const override { return true; }
44 42
45 private: 43 private:
46 GrPathProcessor(GrColor color, const GrXPOverridesForBatch& overrides, 44 GrPathProcessor(GrColor color, const GrXPOverridesForBatch& overrides,
47 const SkMatrix& viewMatrix, const SkMatrix& localMatrix); 45 const SkMatrix& viewMatrix, const SkMatrix& localMatrix);
48 46
49 bool hasExplicitLocalCoords() const override { return false; } 47 bool hasExplicitLocalCoords() const override { return false; }
50 48
51 GrColor fColor; 49 GrColor fColor;
52 const SkMatrix fViewMatrix; 50 const SkMatrix fViewMatrix;
53 const SkMatrix fLocalMatrix; 51 const SkMatrix fLocalMatrix;
54 GrXPOverridesForBatch fOverrides; 52 GrXPOverridesForBatch fOverrides;
55 53
56 typedef GrPrimitiveProcessor INHERITED; 54 typedef GrPrimitiveProcessor INHERITED;
57 }; 55 };
58 56
59 #endif 57 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGeometryProcessor.h ('k') | src/gpu/GrPrimitiveProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698