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

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

Issue 2006643005: Start on replacing path+style with shape in patherenderer (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebase after breaking out more Created 4 years, 6 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 * 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 GrAADistanceFieldPathRenderer_DEFINED 8 #ifndef GrAADistanceFieldPathRenderer_DEFINED
9 #define GrAADistanceFieldPathRenderer_DEFINED 9 #define GrAADistanceFieldPathRenderer_DEFINED
10 10
11 #include "GrBatchAtlas.h" 11 #include "GrBatchAtlas.h"
12 #include "GrPathRenderer.h" 12 #include "GrPathRenderer.h"
13 #include "GrRect.h" 13 #include "GrRect.h"
14 14
15 #include "SkChecksum.h" 15 #include "SkChecksum.h"
16 #include "SkTDynamicHash.h" 16 #include "SkTDynamicHash.h"
17 17
18 class GrContext; 18 class GrContext;
19 19
20 class GrAADistanceFieldPathRenderer : public GrPathRenderer { 20 class GrAADistanceFieldPathRenderer : public GrPathRenderer {
21 public: 21 public:
22 GrAADistanceFieldPathRenderer(); 22 GrAADistanceFieldPathRenderer();
23 virtual ~GrAADistanceFieldPathRenderer(); 23 virtual ~GrAADistanceFieldPathRenderer();
24 24
25 private: 25 private:
26 StencilSupport onGetStencilSupport(const SkPath&) const override { 26 StencilSupport onGetStencilSupport(const GrShape&) const override {
27 return GrPathRenderer::kNoSupport_StencilSupport; 27 return GrPathRenderer::kNoSupport_StencilSupport;
28 } 28 }
29 29
30 bool onCanDrawPath(const CanDrawPathArgs&) const override; 30 bool onCanDrawPath(const CanDrawPathArgs&) const override;
31 31
32 bool onDrawPath(const DrawPathArgs&) override; 32 bool onDrawPath(const DrawPathArgs&) override;
33 33
34 struct PathData { 34 struct PathData {
35 class Key { 35 class Key {
36 public: 36 public:
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 PathCache fPathCache; 82 PathCache fPathCache;
83 PathDataList fPathList; 83 PathDataList fPathList;
84 84
85 typedef GrPathRenderer INHERITED; 85 typedef GrPathRenderer INHERITED;
86 86
87 friend class AADistanceFieldPathBatch; 87 friend class AADistanceFieldPathBatch;
88 friend struct PathTestStruct; 88 friend struct PathTestStruct;
89 }; 89 };
90 90
91 #endif 91 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAConvexPathRenderer.cpp ('k') | src/gpu/batches/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698