diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-08 21:26:09 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-08 21:26:09 +0000 |
commit | 5a56793b2a19eaf90b67d6f24441cc475d74ef17 (patch) | |
tree | 76a4ec48a93c3390ed75bc76e8292f2c59caa14b /src | |
parent | 1360c52b10dad45d7a6850370eab40c6253d7988 (diff) |
Move geometry allocator for drawVertices inside autoflush scope.
BUG=skia:1956
R=bsalomon@google.com, reed@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/128893003
git-svn-id: http://skia.googlecode.com/svn/trunk@12973 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 0eb8c5b758..127d9ec97b 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -942,10 +942,10 @@ void GrContext::drawVertices(const GrPaint& paint, int indexCount) { SK_TRACE_EVENT0("GrContext::drawVertices"); - GrDrawTarget::AutoReleaseGeometry geo; - AutoRestoreEffects are; AutoCheckFlush acf(this); + GrDrawTarget::AutoReleaseGeometry geo; // must be inside AutoCheckFlush scope + GrDrawTarget* target = this->prepareToDraw(&paint, BUFFERED_DRAW, &are, &acf); GrDrawState* drawState = target->drawState(); |