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

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

Issue 1353683003: Move StrokeRectBatches into .cpp files (Closed) Base URL: https://skia.googlesource.com/skia.git@statics
Patch Set: tweaks Created 5 years, 3 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
« no previous file with comments | « src/gpu/batches/GrNonAAFillRectBatch.cpp ('k') | src/gpu/batches/GrNonAAStrokeRectBatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrNonAAStrokeRectBatch.h
diff --git a/src/gpu/batches/GrNonAAFillRectBatch.h b/src/gpu/batches/GrNonAAStrokeRectBatch.h
similarity index 61%
copy from src/gpu/batches/GrNonAAFillRectBatch.h
copy to src/gpu/batches/GrNonAAStrokeRectBatch.h
index ac4ca23b782776886b8af6791db640c6f84890e7..ed26353fb62ab55a3ee2a36f5cba9c90b8f6dea0 100644
--- a/src/gpu/batches/GrNonAAFillRectBatch.h
+++ b/src/gpu/batches/GrNonAAStrokeRectBatch.h
@@ -5,21 +5,25 @@
* found in the LICENSE file.
*/
-#ifndef GrNonAAFillRectBatch_DEFINED
-#define GrNonAAFillRectBatch_DEFINED
+#ifndef GrNonAAStrokeRectBatch_DEFINED
+#define GrNonAAStrokeRectBatch_DEFINED
#include "GrColor.h"
+#include "SkTypes.h"
+
class GrDrawBatch;
-class SkMatrix;
struct SkRect;
+class SkMatrix;
+
+namespace GrNonAAStrokeRectBatch {
-namespace GrNonAAFillRectBatch {
GrDrawBatch* Create(GrColor color,
const SkMatrix& viewMatrix,
const SkRect& rect,
- const SkRect* localRect,
- const SkMatrix* localMatrix);
+ SkScalar strokeWidth,
+ bool snapToPixelCenters);
+
};
#endif
« no previous file with comments | « src/gpu/batches/GrNonAAFillRectBatch.cpp ('k') | src/gpu/batches/GrNonAAStrokeRectBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698