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

Unified Diff: src/gpu/GrOvalRenderer.cpp

Issue 1352813003: add a ClassID function to GrBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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
Index: src/gpu/GrOvalRenderer.cpp
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp
index 8eed38233b699ae837859050dffb52094272db71..40b3c506ac2d4cb359b932589936240e48630759 100644
--- a/src/gpu/GrOvalRenderer.cpp
+++ b/src/gpu/GrOvalRenderer.cpp
@@ -615,6 +615,8 @@ public:
SkRect fDevBounds;
};
+ BATCH_CLASS_ID
+
static GrDrawBatch* Create(const Geometry& geometry) { return new CircleBatch(geometry); }
const char* name() const override { return "CircleBatch"; }
@@ -832,6 +834,8 @@ public:
SkRect fDevBounds;
};
+ BATCH_CLASS_ID
+
static GrDrawBatch* Create(const Geometry& geometry) { return new EllipseBatch(geometry); }
const char* name() const override { return "EllipseBatch"; }
@@ -1098,6 +1102,8 @@ public:
SkRect fBounds;
};
+ BATCH_CLASS_ID
+
static GrDrawBatch* Create(const Geometry& geometry, const SkRect& bounds) {
return new DIEllipseBatch(geometry, bounds);
}
@@ -1450,6 +1456,8 @@ public:
SkRect fDevBounds;
};
+ BATCH_CLASS_ID
+
static GrDrawBatch* Create(const Geometry& geometry) {
return new RRectCircleRendererBatch(geometry);
}
@@ -1626,6 +1634,8 @@ public:
SkRect fDevBounds;
};
+ BATCH_CLASS_ID
+
static GrDrawBatch* Create(const Geometry& geometry) {
return new RRectEllipseRendererBatch(geometry);
}

Powered by Google App Engine
This is Rietveld 408576698