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

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

Issue 1541903002: added support for PLS path rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 12 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 GrPLSGeometryProcessor_DEFINED
9 #define GrPLSGeometryProcessor_DEFINED
10
11 #include "GrGeometryProcessor.h"
12
13 #define PLS_DATA_DECL "__pixel_localEXT PLSData {\n"\
bsalomon 2016/01/04 15:33:47 Seems like this should be in a GL/GLSL specific fi
14 " layout(rgba8i) ivec4 windings;\n"\
15 " layout(rgba8) vec4 dstColor;\n"\
16 "} pls;\n"
17
18 /**
19 * A minor extension to GrGeometryProcessor that adds bounds tracking for pixel local storage
20 * purposes.
21 */
22 class GrPLSGeometryProcessor : public GrGeometryProcessor {
23 public:
24 SkRect fBounds;
25
26 GrPixelLocalStorageState getPixelLocalStorageState() const override {
27 return GrPixelLocalStorageState::kDraw_State;
28 }
bsalomon 2016/01/04 15:33:47 untab }
29 };
30
31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698