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

Unified Diff: src/gpu/batches/GrAAFillRectBatch.cpp

Issue 1295773003: fill rect batch refactor into separate batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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 | « no previous file | src/gpu/batches/GrBWFillRectBatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrAAFillRectBatch.cpp
diff --git a/src/gpu/batches/GrAAFillRectBatch.cpp b/src/gpu/batches/GrAAFillRectBatch.cpp
index 8760896604c60c2d99cfc224cbee6c09f1884bb5..65ac861206cb0d99d41c0bb6c31d86783860bf90 100644
--- a/src/gpu/batches/GrAAFillRectBatch.cpp
+++ b/src/gpu/batches/GrAAFillRectBatch.cpp
@@ -190,6 +190,11 @@ public:
inline static const GrIndexBuffer* GetIndexBuffer(GrResourceProvider* rp) {
bsalomon 2015/08/18 20:31:03 Do these all need to be explicitly inline?
return get_index_buffer(rp);
}
+
+ template <class Geometry>
+ inline static void SetBounds(const Geometry& geo, SkRect* outBounds) {
+ *outBounds = geo.fDevRect;
+ }
};
class AAFillRectBatchNoLocalMatrixImp : public AAFillRectBatchBase {
« no previous file with comments | « no previous file | src/gpu/batches/GrBWFillRectBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698