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

Unified Diff: src/gpu/batches/GrRegionBatch.h

Issue 2267273006: GPU implementation of drawRegion() (Closed) Base URL: https://skia.googlesource.com/skia.git@drawregion
Patch Set: Response to 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/batches/GrRegionBatch.h
diff --git a/src/gpu/batches/GrNonAAStrokeRectBatch.h b/src/gpu/batches/GrRegionBatch.h
similarity index 50%
copy from src/gpu/batches/GrNonAAStrokeRectBatch.h
copy to src/gpu/batches/GrRegionBatch.h
index 4d94337cc0676be590013e0a7262a10a4798a647..06d744841c763a5c3b25c506f923c2b17e815509 100644
--- a/src/gpu/batches/GrNonAAStrokeRectBatch.h
+++ b/src/gpu/batches/GrRegionBatch.h
@@ -5,26 +5,21 @@
* found in the LICENSE file.
*/
-#ifndef GrNonAAStrokeRectBatch_DEFINED
-#define GrNonAAStrokeRectBatch_DEFINED
+#ifndef GrRegionBatch_DEFINED
+#define GrRegionBatch_DEFINED
#include "GrColor.h"
-#include "SkTypes.h"
-
class GrDrawBatch;
-struct SkRect;
-class SkStrokeRec;
class SkMatrix;
+class SkRegion;
-namespace GrNonAAStrokeRectBatch {
+namespace GrRegionBatch {
GrDrawBatch* Create(GrColor color,
const SkMatrix& viewMatrix,
- const SkRect& rect,
- const SkStrokeRec&,
- bool snapToPixelCenters);
+ const SkRegion& region);
-}
+};
#endif

Powered by Google App Engine
This is Rietveld 408576698