Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |