diff options
author | 2016-02-03 13:29:19 -0800 | |
---|---|---|
committer | 2016-02-03 13:29:19 -0800 | |
commit | e62cbdffcf27278272e87de65a07dddc24605ad7 (patch) | |
tree | f0b520683335456f380c809b3c025a19fd20177d /src/gpu/batches/GrDrawBatch.cpp | |
parent | ebf440816bbb6fccbfb5ab81145c38d32f056b15 (diff) |
Fix assert accessing pipeline from initBatchTracker
Marks fPipelineInstalled as true before calling initBatchTracker. The
batch subclass ought to be able to access the newly constructed
pipeline object during its init.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1666813002
Review URL: https://codereview.chromium.org/1666813002
Diffstat (limited to 'src/gpu/batches/GrDrawBatch.cpp')
-rw-r--r-- | src/gpu/batches/GrDrawBatch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/batches/GrDrawBatch.cpp b/src/gpu/batches/GrDrawBatch.cpp index 4253923f33..b73f7515ec 100644 --- a/src/gpu/batches/GrDrawBatch.cpp +++ b/src/gpu/batches/GrDrawBatch.cpp @@ -29,7 +29,7 @@ bool GrDrawBatch::installPipeline(const GrPipeline::CreateArgs& args) { if (!GrPipeline::CreateAt(location, args, &overrides)) { return false; } - this->initBatchTracker(overrides); fPipelineInstalled = true; + this->initBatchTracker(overrides); return true; } |