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

Unified Diff: src/gpu/GrBatch.h

Issue 1272703002: AARectBatch can transform coords on cpu (Closed) Base URL: https://skia.googlesource.com/skia.git@lccleanup5
Patch Set: 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/GrAARectRenderer.cpp ('k') | src/gpu/gl/GrGLGeometryProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrBatch.h
diff --git a/src/gpu/GrBatch.h b/src/gpu/GrBatch.h
index 51c556e737a0b6a9a15f23f2db233b86a19e2138..a8dac38f71e409a8da5bd03ec63de9091007da55 100644
--- a/src/gpu/GrBatch.h
+++ b/src/gpu/GrBatch.h
@@ -94,7 +94,10 @@ public:
SkDEBUGCODE(bool isUsed() const { return fUsed; })
const GrPipeline* pipeline() const { return fPipeline; }
- void setPipeline(const GrPipeline* pipeline) { fPipeline.reset(SkRef(pipeline)); }
+ void setPipeline(const GrPipeline* pipeline) {
+ fPipeline.reset(SkRef(pipeline));
+ this->onSetPipeline();
+ }
protected:
template <typename PROC_SUBCLASS> void initClassID() {
@@ -164,6 +167,8 @@ private:
return id;
}
+ virtual void onSetPipeline() {}
+
enum {
kIllegalBatchClassID = 0,
};
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/gl/GrGLGeometryProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698