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

Unified Diff: src/gpu/GrContext.cpp

Issue 14858035: Partial revert of r9087 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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
===================================================================
--- src/gpu/GrContext.cpp (revision 9105)
+++ src/gpu/GrContext.cpp (working copy)
@@ -681,6 +681,7 @@
}
static bool apply_aa_to_rect(GrDrawTarget* target,
+ const GrRect& rect,
SkScalar strokeWidth,
const SkMatrix* matrix,
SkMatrix* combinedMatrix,
@@ -753,6 +754,10 @@
#endif
}
+ if (0 == rect.width() || 0 == rect.height()) {
+ return false;
+ }
+
return true;
}
@@ -769,7 +774,7 @@
bool useVertexCoverage;
bool needAA = paint.isAntiAlias() &&
!this->getRenderTarget()->isMultisampled();
- bool doAA = needAA && apply_aa_to_rect(target, width, matrix,
+ bool doAA = needAA && apply_aa_to_rect(target, rect, width, matrix,
&combinedMatrix,
&useVertexCoverage);
if (doAA) {
« 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