Index: src/gpu/GrPLSGeometryProcessor.h |
diff --git a/src/gpu/GrPLSGeometryProcessor.h b/src/gpu/GrPLSGeometryProcessor.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..365953ea1cdd4b923606717aee93b91232933153 |
--- /dev/null |
+++ b/src/gpu/GrPLSGeometryProcessor.h |
@@ -0,0 +1,26 @@ |
+/* |
+ * Copyright 2016 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#ifndef GrPLSGeometryProcessor_DEFINED |
+#define GrPLSGeometryProcessor_DEFINED |
+ |
+#include "GrGeometryProcessor.h" |
+ |
+/** |
+ * A minor extension to GrGeometryProcessor that adds bounds tracking for pixel local storage |
+ * purposes. |
+ */ |
+class GrPLSGeometryProcessor : public GrGeometryProcessor { |
+public: |
+ SkRect fBounds; |
bsalomon
2016/01/13 19:15:34
public?
|
+ |
+ GrPixelLocalStorageState getPixelLocalStorageState() const override { |
+ return GrPixelLocalStorageState::kDraw_State; |
+ } |
+}; |
+ |
+#endif |