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

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

Issue 1265763002: Args structs to GrPathRenderer functions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more Created 5 years, 4 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/GrSoftwarePathRenderer.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 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 GrSoftwarePathRenderer_DEFINED 9 #ifndef GrSoftwarePathRenderer_DEFINED
10 #define GrSoftwarePathRenderer_DEFINED 10 #define GrSoftwarePathRenderer_DEFINED
11 11
12 #include "GrPathRenderer.h" 12 #include "GrPathRenderer.h"
13 13
14 class GrContext; 14 class GrContext;
15 15
16 /** 16 /**
17 * This class uses the software side to render a path to an SkBitmap and 17 * This class uses the software side to render a path to an SkBitmap and
18 * then uploads the result to the gpu 18 * then uploads the result to the gpu
19 */ 19 */
20 class GrSoftwarePathRenderer : public GrPathRenderer { 20 class GrSoftwarePathRenderer : public GrPathRenderer {
21 public: 21 public:
22 GrSoftwarePathRenderer(GrContext* context) 22 GrSoftwarePathRenderer(GrContext* context)
23 : fContext(context) { 23 : fContext(context) {
24 } 24 }
25 25 private:
26 virtual bool canDrawPath(const GrDrawTarget*,
27 const GrPipelineBuilder*,
28 const SkMatrix& viewMatrix,
29 const SkPath&,
30 const GrStrokeInfo&,
31 bool antiAlias) const override;
32 protected:
33 virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, 26 virtual StencilSupport onGetStencilSupport(const GrDrawTarget*,
34 const GrPipelineBuilder*, 27 const GrPipelineBuilder*,
35 const SkPath&, 28 const SkPath&,
36 const GrStrokeInfo&) const overri de; 29 const GrStrokeInfo&) const overri de;
30
31 bool onCanDrawPath(const CanDrawPathArgs&) const override;
37 32
38 virtual bool onDrawPath(GrDrawTarget*, 33 bool onDrawPath(const DrawPathArgs&) override;
39 GrPipelineBuilder*,
40 GrColor,
41 const SkMatrix& viewMatrix,
42 const SkPath&,
43 const GrStrokeInfo&,
44 bool antiAlias) override;
45 34
46 private: 35 private:
47 GrContext* fContext; 36 GrContext* fContext;
48 37
49 typedef GrPathRenderer INHERITED; 38 typedef GrPathRenderer INHERITED;
50 }; 39 };
51 40
52 #endif 41 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPathRendererChain.cpp ('k') | src/gpu/GrSoftwarePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698