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

Unified Diff: src/gpu/GrImmediateDrawTarget.cpp

Issue 1275003004: Remove GrPipelineOptimizations member from GrPipeline (Closed) Base URL: https://skia.googlesource.com/skia.git@opt
Patch Set: rebase 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/GrImmediateDrawTarget.h ('k') | src/gpu/GrPipeline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrImmediateDrawTarget.cpp
diff --git a/src/gpu/GrImmediateDrawTarget.cpp b/src/gpu/GrImmediateDrawTarget.cpp
index 1097a79371995ad6b3a73f1f5dc95a512295ea76..5b6a1a524141db449d9d1a5123509df7e4f77501 100644
--- a/src/gpu/GrImmediateDrawTarget.cpp
+++ b/src/gpu/GrImmediateDrawTarget.cpp
@@ -27,8 +27,9 @@ GrImmediateDrawTarget::~GrImmediateDrawTarget() {
void GrImmediateDrawTarget::onDrawBatch(GrBatch* batch,
const PipelineInfo& pipelineInfo) {
+ GrPipelineOptimizations opts;
SkAlignedSStorage<sizeof(GrPipeline)> pipelineStorage;
- bool shouldDraw = this->setupPipelineAndShouldDraw(pipelineStorage.get(), pipelineInfo);
+ bool shouldDraw = this->setupPipelineAndShouldDraw(pipelineStorage.get(), pipelineInfo, &opts);
GrPipeline* pipeline = reinterpret_cast<GrPipeline*>(pipelineStorage.get());
if (!shouldDraw) {
@@ -36,7 +37,7 @@ void GrImmediateDrawTarget::onDrawBatch(GrBatch* batch,
return;
}
- batch->initBatchTracker(pipeline->infoForPrimitiveProcessor());
+ batch->initBatchTracker(opts);
fBatchTarget.resetNumberOfDraws();
@@ -86,8 +87,9 @@ void GrImmediateDrawTarget::onFlush() {
bool
GrImmediateDrawTarget::setupPipelineAndShouldDraw(void* pipelineAddr,
- const GrDrawTarget::PipelineInfo& pipelineInfo) {
- const GrPipeline* pipeline = this->setupPipeline(pipelineInfo, pipelineAddr);
+ const GrDrawTarget::PipelineInfo& pipelineInfo,
+ GrPipelineOptimizations* opts) {
+ const GrPipeline* pipeline = this->setupPipeline(pipelineInfo, pipelineAddr, opts);
if (pipeline->mustSkip()) {
return false;
« no previous file with comments | « src/gpu/GrImmediateDrawTarget.h ('k') | src/gpu/GrPipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698