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

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

Issue 1306143005: Move Pathrenderers to batches folder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 3 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/GrDashLinePathRenderer.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2012 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9 #ifndef GrBuiltInPathRenderer_DEFINED
10 #define GrBuiltInPathRenderer_DEFINED
11
12 #include "GrPathRenderer.h"
13
14 class GrContext;
15 class GrGpu;
16
17 /**
18 * Uses GrGpu::stencilPath followed by a cover rectangle. This subclass doesn't apply AA; it relies
19 * on the target having MSAA if AA is desired.
20 */
21 class GrStencilAndCoverPathRenderer : public GrPathRenderer {
22 public:
23
24 static GrPathRenderer* Create(GrResourceProvider*, const GrCaps&);
25
26
27 private:
28 StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const override {
29 return GrPathRenderer::kStencilOnly_StencilSupport;
30 }
31
32 bool onCanDrawPath(const CanDrawPathArgs&) const override;
33
34 bool onDrawPath(const DrawPathArgs&) override;
35
36 void onStencilPath(const StencilPathArgs&) override;
37
38 GrStencilAndCoverPathRenderer(GrResourceProvider*);
39
40 GrResourceProvider* fResourceProvider;
41
42 typedef GrPathRenderer INHERITED;
43 };
44
45 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDashLinePathRenderer.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698