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

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

Issue 2230513004: Re-adding analytical GeoProc for rectangles (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: 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
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 GrRectRenderer_DEFINED
9 #define GrRectRenderer_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 GrRectRenderer {
egdaniel 2016/08/12 17:37:06 Lets move this class into the batches subdirectory
dvonbeck 2016/08/12 18:29:48 Done.
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 // GrRectRenderer_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698