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

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

Issue 692583002: WIP: GPU-accelerated trapezoidal path renderer. Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrTrapezoidalPathRenderer -> GrAAConcavePathRenderer; swap MSAA support for a coverage ramp. 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/core/SkStroke.cpp ('k') | src/gpu/GrAAConcavePathRenderer.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 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrAAConcavePathRenderer_DEFINED
9 #define GrAAConcavePathRenderer_DEFINED
10
11 #include "GrPathRenderer.h"
12 #include "SkTemplates.h"
13
14 /**
15 * Subclass that renders the path by converting to screen-space trapezoids plus
16 * extra 1-pixel geometry for AA.
17 */
18 class SK_API GrAAConcavePathRenderer : public GrPathRenderer {
19 public:
20 GrAAConcavePathRenderer();
21
22 private:
23
24 bool onCanDrawPath(const CanDrawPathArgs& args) const override;
25
26 StencilSupport onGetStencilSupport(const SkPath&,
27 const GrStrokeInfo&) const override;
28
29 bool onDrawPath(const DrawPathArgs& args) override;
30
31 typedef GrPathRenderer INHERITED;
32 };
33
34 #endif
OLDNEW
« no previous file with comments | « src/core/SkStroke.cpp ('k') | src/gpu/GrAAConcavePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698