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

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

Issue 1164443002: Revert of Add direct getter for GrCaps to GrContext. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/gpu/GrCoordTransform.cpp ('k') | src/gpu/GrDashLinePathRenderer.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 2015 Google Inc. 3 * Copyright 2015 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 GrDashLinePathRenderer_DEFINED 9 #ifndef GrDashLinePathRenderer_DEFINED
10 #define GrDashLinePathRenderer_DEFINED 10 #define GrDashLinePathRenderer_DEFINED
11 11
12 #include "GrPathRenderer.h" 12 #include "GrPathRenderer.h"
13 13
14 class GrDashLinePathRenderer : public GrPathRenderer { 14 class GrDashLinePathRenderer : public GrPathRenderer {
15 public: 15 public:
16 GrDashLinePathRenderer(GrContext*);
17 ~GrDashLinePathRenderer();
18
16 bool canDrawPath(const GrDrawTarget*, 19 bool canDrawPath(const GrDrawTarget*,
17 const GrPipelineBuilder*, 20 const GrPipelineBuilder*,
18 const SkMatrix& viewMatrix, 21 const SkMatrix& viewMatrix,
19 const SkPath&, 22 const SkPath&,
20 const GrStrokeInfo&, 23 const GrStrokeInfo&,
21 bool antiAlias) const override; 24 bool antiAlias) const override;
22 25
23 protected: 26 protected:
24 StencilSupport onGetStencilSupport(const GrDrawTarget*, 27 StencilSupport onGetStencilSupport(const GrDrawTarget*,
25 const GrPipelineBuilder*, 28 const GrPipelineBuilder*,
26 const SkPath&, 29 const SkPath&,
27 const GrStrokeInfo&) const override { 30 const GrStrokeInfo&) const override {
28 return kNoSupport_StencilSupport; 31 return kNoSupport_StencilSupport;
29 } 32 }
30 33
31 bool onDrawPath(GrDrawTarget*, 34 bool onDrawPath(GrDrawTarget*,
32 GrPipelineBuilder*, 35 GrPipelineBuilder*,
33 GrColor, 36 GrColor,
34 const SkMatrix& viewMatrix, 37 const SkMatrix& viewMatrix,
35 const SkPath&, 38 const SkPath&,
36 const GrStrokeInfo&, 39 const GrStrokeInfo&,
37 bool antiAlias) override; 40 bool antiAlias) override;
38 SkAutoTUnref<GrGpu> fGpu; 41 SkAutoTUnref<GrGpu> fGpu;
39 typedef GrPathRenderer INHERITED; 42 typedef GrPathRenderer INHERITED;
40 }; 43 };
41 44
42 45
43 #endif 46 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrCoordTransform.cpp ('k') | src/gpu/GrDashLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698