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

Unified Diff: src/gpu/GrOptDrawState.cpp

Issue 732693002: Drawstate on stack (Closed) Base URL: https://skia.googlesource.com/skia.git@real_def_gp
Patch Set: ready Created 6 years, 1 month 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/GrOptDrawState.cpp
diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp
index 60ec6a4fa1d58efbfcb2d1a8dcdbd928d491636c..a5be2f77de8c7d5cd65277b4426de5d27af82ff1 100644
--- a/src/gpu/GrOptDrawState.cpp
+++ b/src/gpu/GrOptDrawState.cpp
@@ -90,8 +90,8 @@ GrOptDrawState::GrOptDrawState(const GrDrawState& drawState,
gpu->buildProgramDesc(*this, descInfo, drawType, dstCopy, &fDesc);
};
-GrOptDrawState* GrOptDrawState::Create(const GrDrawState& drawState,
- GrGpu* gpu,
+GrOptDrawState* GrOptDrawState::Create(GrGpu* gpu,
+ const GrDrawState& drawState,
const GrDeviceCoordTexture* dstCopy,
GrGpu::DrawType drawType) {
GrBlendCoeff srcCoeff;
@@ -109,8 +109,8 @@ GrOptDrawState* GrOptDrawState::Create(const GrDrawState& drawState,
return NULL;
}
- return SkNEW_ARGS(GrOptDrawState, (drawState, blendFlags, srcCoeff,
- dstCoeff, gpu, dstCopy, drawType));
+ return SkNEW_ARGS(GrOptDrawState, (drawState, blendFlags, srcCoeff, dstCoeff, gpu, dstCopy,
+ drawType));
}
void GrOptDrawState::setOutputStateInfo(const GrDrawState& ds,

Powered by Google App Engine
This is Rietveld 408576698