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

Side by Side Diff: src/gpu/GrSoftwarePathRenderer.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
« no previous file with comments | « src/gpu/GrPathRendererChain.cpp ('k') | src/gpu/batches/GrAADistanceFieldPathRenderer.h » ('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 2012 Google Inc. 2 * Copyright 2012 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 GrSoftwarePathRenderer_DEFINED 8 #ifndef GrSoftwarePathRenderer_DEFINED
9 #define GrSoftwarePathRenderer_DEFINED 9 #define GrSoftwarePathRenderer_DEFINED
10 10
11 #include "GrPathRenderer.h" 11 #include "GrPathRenderer.h"
12 12
13 class GrContext; 13 class GrContext;
14 14
15 /** 15 /**
16 * This class uses the software side to render a path to an SkBitmap and 16 * This class uses the software side to render a path to an SkBitmap and
17 * then uploads the result to the gpu 17 * then uploads the result to the gpu
18 */ 18 */
19 class GrSoftwarePathRenderer : public GrPathRenderer { 19 class GrSoftwarePathRenderer : public GrPathRenderer {
20 public: 20 public:
21 GrSoftwarePathRenderer(GrContext* context) 21 GrSoftwarePathRenderer(GrContext* context)
22 : fContext(context) { 22 : fContext(context) {
23 } 23 }
24 private: 24 private:
25 StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const override { 25 StencilSupport onGetStencilSupport(const SkPath&) const override {
26 return GrPathRenderer::kNoSupport_StencilSupport; 26 return GrPathRenderer::kNoSupport_StencilSupport;
27 } 27 }
28 28
29 bool onCanDrawPath(const CanDrawPathArgs&) const override; 29 bool onCanDrawPath(const CanDrawPathArgs&) const override;
30 30
31 bool onDrawPath(const DrawPathArgs&) override; 31 bool onDrawPath(const DrawPathArgs&) override;
32 32
33 private: 33 private:
34 GrContext* fContext; 34 GrContext* fContext;
35 35
36 typedef GrPathRenderer INHERITED; 36 typedef GrPathRenderer INHERITED;
37 }; 37 };
38 38
39 #endif 39 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPathRendererChain.cpp ('k') | src/gpu/batches/GrAADistanceFieldPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698