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

Unified Diff: src/gpu/GrTargetCommands.h

Issue 1282893002: Make initBatchTracker private, move towards pipeline on batch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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
Index: src/gpu/GrTargetCommands.h
diff --git a/src/gpu/GrTargetCommands.h b/src/gpu/GrTargetCommands.h
index 4de75897fcb5f523968ab6a986890b8ac8a78721..f5f0004d079638324e3da966089c8d67a012e808 100644
--- a/src/gpu/GrTargetCommands.h
+++ b/src/gpu/GrTargetCommands.h
@@ -241,7 +241,7 @@ private:
};
struct DrawBatch : public Cmd {
- DrawBatch(State* state, GrBatch* batch, GrBatchTarget* batchTarget)
+ DrawBatch(const State* state, GrBatch* batch, GrBatchTarget* batchTarget)
: Cmd(kDrawBatch_CmdType)
, fState(SkRef(state))
, fBatch(SkRef(batch))
@@ -251,8 +251,8 @@ private:
void execute(GrGpu*) override;
- SkAutoTUnref<State> fState;
- SkAutoTUnref<GrBatch> fBatch;
+ SkAutoTUnref<const State> fState;
+ SkAutoTUnref<GrBatch> fBatch;
private:
GrBatchTarget* fBatchTarget;

Powered by Google App Engine
This is Rietveld 408576698