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

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

Issue 1395693011: Fix for GM:bigblurs not actually blurring some of the rectangles on Nexus 10. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | « gyp/gpu.gypi ('k') | src/gpu/GrTessellator.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 2015 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 GrTessellator_DEFINED
9 #define GrTessellator_DEFINED
10
11 #include "SkPath.h"
12 #include "GrResourceProvider.h"
13
14 /**
15 * Provides utility functions for converting paths to a collection of triangles.
16 */
17
18 #define TESSELLATOR_WIREFRAME 0
19
20 namespace GrTessellator {
21
22 struct WindingVertex {
23 SkPoint fPos;
24 int fWinding;
25 };
26
27 // Triangulates a path to an array of vertices. Each triangle is represented as a set of three
28 // WindingVertex entries, each of which contains the position and winding count (which is the same
29 // for all three vertices of a triangle). The 'verts' out parameter is set to po int to the resultant
30 // vertex array. CALLER IS RESPONSIBLE for deleting this buffer to avoid a memor y leak!
31 int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBou nds,
32 WindingVertex** verts);
33
34 int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBo unds,
35 GrResourceProvider* resourceProvider,
36 SkAutoTUnref<GrVertexBuffer>& vertexBuffer, bool canMapVB, b ool* isLinear);
37
38 }
39
40 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrTessellator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698