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

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

Issue 1950893002: Make GrPathRenderer only support fills for path stenciling (Closed) Base URL: https://skia.googlesource.com/skia.git@styleiface
Patch Set: Set draw params to fill in default impl of GrPR::onStencilPath Created 4 years, 7 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 2015 Google Inc. 2 * Copyright 2015 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 GrDashLinePathRenderer_DEFINED 8 #ifndef GrDashLinePathRenderer_DEFINED
9 #define GrDashLinePathRenderer_DEFINED 9 #define GrDashLinePathRenderer_DEFINED
10 10
11 #include "GrPathRenderer.h" 11 #include "GrPathRenderer.h"
12 12
13 class GrDashLinePathRenderer : public GrPathRenderer { 13 class GrDashLinePathRenderer : public GrPathRenderer {
14 private: 14 private:
15 bool onCanDrawPath(const CanDrawPathArgs&) const override; 15 bool onCanDrawPath(const CanDrawPathArgs&) const override;
16 16
17 StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const override { 17 StencilSupport onGetStencilSupport(const SkPath&) const override {
18 return kNoSupport_StencilSupport; 18 return kNoSupport_StencilSupport;
19 } 19 }
20 20
21 bool onDrawPath(const DrawPathArgs&) override; 21 bool onDrawPath(const DrawPathArgs&) override;
22 22
23 SkAutoTUnref<GrGpu> fGpu; 23 SkAutoTUnref<GrGpu> fGpu;
24 typedef GrPathRenderer INHERITED; 24 typedef GrPathRenderer INHERITED;
25 }; 25 };
26 26
27 27
28 #endif 28 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAADistanceFieldPathRenderer.h ('k') | src/gpu/batches/GrDefaultPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698