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

Side by Side Diff: src/gpu/gl/GrGLPathRendering.h

Issue 1919843002: Revert of Batch multiple single NVPR draw paths to instanced draws (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/gl/GrGLPath.cpp ('k') | src/gpu/gl/GrGLPathRendering.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 2014 Google Inc. 2 * Copyright 2014 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 GrGLPathRendering_DEFINED 8 #ifndef GrGLPathRendering_DEFINED
9 #define GrGLPathRendering_DEFINED 9 #define GrGLPathRendering_DEFINED
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 /* Sets the projection matrix for path rendering */ 58 /* Sets the projection matrix for path rendering */
59 void setProjectionMatrix(const SkMatrix& matrix, 59 void setProjectionMatrix(const SkMatrix& matrix,
60 const SkISize& renderTargetSize, 60 const SkISize& renderTargetSize,
61 GrSurfaceOrigin renderTargetOrigin); 61 GrSurfaceOrigin renderTargetOrigin);
62 62
63 GrGLuint genPaths(GrGLsizei range); 63 GrGLuint genPaths(GrGLsizei range);
64 GrGLvoid deletePaths(GrGLuint path, GrGLsizei range); 64 GrGLvoid deletePaths(GrGLuint path, GrGLsizei range);
65 65
66 protected: 66 protected:
67 void onStencilPath(const StencilPathArgs&, const GrPath*) override; 67 void onStencilPath(const StencilPathArgs&, const GrPath*) override;
68 void onDrawPath(const GrPipeline&,
69 const GrPrimitiveProcessor&,
70 const GrStencilSettings&,
71 const GrPath*) override;
68 void onDrawPaths(const GrPipeline&, 72 void onDrawPaths(const GrPipeline&,
69 const GrPrimitiveProcessor&, 73 const GrPrimitiveProcessor&,
70 const GrStencilSettings&, 74 const GrStencilSettings&,
71 const GrPathRange*, 75 const GrPathRange*,
72 const void* indices, 76 const void* indices,
73 PathIndexType, 77 PathIndexType,
74 const float transformValues[], 78 const float transformValues[],
75 PathTransformType, 79 PathTransformType,
76 int count) override; 80 int count) override;
77 void onDrawPaths(const GrPipeline&,
78 const GrPrimitiveProcessor&,
79 const GrStencilSettings&,
80 const GrPath* const*,
81 int count) override;
82 private: 81 private:
83 /** 82 /**
84 * Mark certain functionality as not supported. 83 * Mark certain functionality as not supported.
85 */ 84 */
86 struct Caps { 85 struct Caps {
87 bool bindFragmentInputSupport : 1; 86 bool bindFragmentInputSupport : 1;
88 }; 87 };
89 88
90 void flushPathStencilSettings(const GrStencilSettings&); 89 void flushPathStencilSettings(const GrStencilSettings&);
91 90
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 GrGLGpu* gpu(); 122 GrGLGpu* gpu();
124 123
125 GrGLuint fFirstPreallocatedPathID; 124 GrGLuint fFirstPreallocatedPathID;
126 GrGLsizei fPreallocatedPathCount; 125 GrGLsizei fPreallocatedPathCount;
127 MatrixState fHWProjectionMatrixState; 126 MatrixState fHWProjectionMatrixState;
128 GrStencilSettings fHWPathStencilSettings; 127 GrStencilSettings fHWPathStencilSettings;
129 Caps fCaps; 128 Caps fCaps;
130 }; 129 };
131 130
132 #endif 131 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLPath.cpp ('k') | src/gpu/gl/GrGLPathRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698