diff options
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r-- | src/gpu/GrDrawTarget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index 718a12e88e..3dd86d2dfe 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp @@ -519,6 +519,10 @@ void GrDrawTarget::restoreDrawState(const SavedDrawState& state) { fCurrDrawState = *state.fState.get(); } +void GrDrawTarget::copyDrawState(const GrDrawTarget& srcTarget) { + fCurrDrawState = srcTarget.fCurrDrawState; +} + bool GrDrawTarget::reserveVertexSpace(GrVertexLayout vertexLayout, int vertexCount, void** vertices) { |