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

Unified Diff: src/gpu/GrContext.cpp

Issue 128893003: Move geometry allocator for drawVertices inside autoflush scope. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 0eb8c5b758091a1370591da1a0cb932b7c9f08f0..127d9ec97b56cacef7523edb93d1696609ff5e3f 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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698