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

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

Issue 1278043003: Move AAFillRect into CPP for templatization (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more Created 5 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
« no previous file with comments | « src/gpu/batches/GrAAFillRectBatch.cpp ('k') | src/gpu/batches/GrRectBatchFactory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrRectBatchFactory.h
diff --git a/src/gpu/batches/GrRectBatchFactory.h b/src/gpu/batches/GrRectBatchFactory.h
index d6fe67398d77a06d5a125c723f1dc1580e6593b9..8a088834387d9c70dc2c8fd428e5453d5292e504 100644
--- a/src/gpu/batches/GrRectBatchFactory.h
+++ b/src/gpu/batches/GrRectBatchFactory.h
@@ -8,6 +8,7 @@
#ifndef GrRectBatchFactory_DEFINED
#define GrRectBatchFactory_DEFINED
+#include "GrAAFillRectBatch.h"
#include "GrColor.h"
class GrBatch;
@@ -26,10 +27,12 @@ GrBatch* CreateFillBW(GrColor color,
const SkRect* localRect,
const SkMatrix* localMatrix);
-GrBatch* CreateFillAA(GrColor color,
+static GrBatch* CreateFillAA(GrColor color,
const SkMatrix& viewMatrix,
const SkRect& rect,
- const SkRect& devRect);
+ const SkRect& devRect) {
+ return GrAAFillRectBatch::Create(color, viewMatrix, rect, devRect);
+}
GrBatch* CreateStrokeBW(GrColor color,
const SkMatrix& viewMatrix,
« no previous file with comments | « src/gpu/batches/GrAAFillRectBatch.cpp ('k') | src/gpu/batches/GrRectBatchFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698