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

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

Issue 919693003: remove goto in Distance field path renderer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrAADistanceFieldPathRenderer_DEFINED 9 #ifndef GrAADistanceFieldPathRenderer_DEFINED
10 #define GrAADistanceFieldPathRenderer_DEFINED 10 #define GrAADistanceFieldPathRenderer_DEFINED
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 GrAtlas* fAtlas; 76 GrAtlas* fAtlas;
77 SkAutoTUnref<GrGeometryProcessor> fCachedGeometryProcessor; 77 SkAutoTUnref<GrGeometryProcessor> fCachedGeometryProcessor;
78 // current set of flags used to create the cached geometry processor 78 // current set of flags used to create the cached geometry processor
79 uint32_t fEffectFlags; 79 uint32_t fEffectFlags;
80 GrAtlas::ClientPlotUsage fPlotUsage; 80 GrAtlas::ClientPlotUsage fPlotUsage;
81 SkTDynamicHash<PathData, PathData::Key> fPathCache; 81 SkTDynamicHash<PathData, PathData::Key> fPathCache;
82 PathDataList fPathList; 82 PathDataList fPathList;
83 83
84 bool internalDrawPath(GrDrawTarget*, GrPipelineBuilder*, GrColor, const SkMa trix& viewMatrix, 84 bool internalDrawPath(GrDrawTarget*, GrPipelineBuilder*, GrColor, const SkMa trix& viewMatrix,
85 const SkPath& path, const PathData* pathData); 85 const SkPath& path, const PathData* pathData);
86 inline bool uploadPath(GrPlot** plot, SkIPoint16* atlasLocation, int width, int height,
87 void* dfStorage);
86 PathData* addPathToAtlas(const SkPath& path, const SkStrokeRec& stroke, bool antiAlias, 88 PathData* addPathToAtlas(const SkPath& path, const SkStrokeRec& stroke, bool antiAlias,
87 uint32_t dimension, SkScalar scale); 89 uint32_t dimension, SkScalar scale);
88 bool freeUnusedPlot(); 90 bool freeUnusedPlot();
89 91
90 typedef GrPathRenderer INHERITED; 92 typedef GrPathRenderer INHERITED;
91 }; 93 };
92 94
93 #endif 95 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAADistanceFieldPathRenderer.cpp » ('j') | src/gpu/GrAADistanceFieldPathRenderer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698