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

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

Issue 1541903002: added support for PLS path rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix for ASAN failure Created 4 years, 10 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/GrPLSGeometryProcessor.h ('k') | src/gpu/GrPathProcessor.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 GrPathProcessor_DEFINED 8 #ifndef GrPathProcessor_DEFINED
9 #define GrPathProcessor_DEFINED 9 #define GrPathProcessor_DEFINED
10 10
(...skipping 22 matching lines...) Expand all
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; } 39 bool hasTransformedLocalCoords() const override { return false; }
40 40
41 const GrXPOverridesForBatch& overrides() const { return fOverrides; } 41 const GrXPOverridesForBatch& overrides() const { return fOverrides; }
42 42
43 virtual bool isPathRendering() const override { return true; }
44
43 private: 45 private:
44 GrPathProcessor(GrColor color, const GrXPOverridesForBatch& overrides, 46 GrPathProcessor(GrColor color, const GrXPOverridesForBatch& overrides,
45 const SkMatrix& viewMatrix, const SkMatrix& localMatrix); 47 const SkMatrix& viewMatrix, const SkMatrix& localMatrix);
46 48
47 bool hasExplicitLocalCoords() const override { return false; } 49 bool hasExplicitLocalCoords() const override { return false; }
48 50
49 GrColor fColor; 51 GrColor fColor;
50 const SkMatrix fViewMatrix; 52 const SkMatrix fViewMatrix;
51 const SkMatrix fLocalMatrix; 53 const SkMatrix fLocalMatrix;
52 GrXPOverridesForBatch fOverrides; 54 GrXPOverridesForBatch fOverrides;
53 55
54 typedef GrPrimitiveProcessor INHERITED; 56 typedef GrPrimitiveProcessor INHERITED;
55 }; 57 };
56 58
57 #endif 59 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPLSGeometryProcessor.h ('k') | src/gpu/GrPathProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698