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

Side by Side Diff: src/gpu/batches/GrAnalyticRectBatch.h

Issue 2230513004: Re-adding analytical GeoProc for rectangles (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Addressed patch 2 comments Created 4 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/GrDrawContext.cpp ('k') | src/gpu/batches/GrAnalyticRectBatch.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 2016 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 GrAnalyticRectBatch_DEFINED
9 #define GrAnalyticRectBatch_DEFINED
10
11 #include "GrColor.h"
12
13 class GrDrawBatch;
14 class SkMatrix;
15 struct SkRect;
16
17 /*
18 * This class wraps helper functions that draw rects analytically. Used when a s hader requires a
19 * distance vector.
20 *
21 * @param color the shape's color
22 * @param viewMatrix the shape's local matrix
23 * @param rect the shape in source space
24 * @param croppedRect the shape in device space, clipped to the device's bounds
25 * @param bounds the axis aligned bounds of the shape in device space
26 */
27 class GrAnalyticRectBatch {
28 public:
29 static GrDrawBatch* CreateAnalyticRectBatch(GrColor color,
30 const SkMatrix& viewMatrix,
31 const SkRect& rect,
32 const SkRect& croppedRect,
33 const SkRect& bounds);
34 };
35
36 #endif // GrAnalyticRectBatch_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/batches/GrAnalyticRectBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698