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

Unified Diff: src/gpu/GrDrawContext.cpp

Issue 1309543012: Add new GM to directly exercise perspective bitmap drawing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Addressed code review comments Created 5 years, 3 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 | « gm/perspshaders.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawContext.cpp
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index b11518f018fe89d86444785b053291c6ebc1b7e3..e03075e41f5f412f392233855535910bf2565697 100644
--- a/src/gpu/GrDrawContext.cpp
+++ b/src/gpu/GrDrawContext.cpp
@@ -273,11 +273,11 @@ void GrDrawContext::drawRect(GrRenderTarget* rt,
// The fill path can handle rotation but not skew
// The stroke path needs the rect to remain axis aligned (no rotation or skew)
- // None of our draw rect calls can handle perspective yet
- SkASSERT(!viewMatrix.hasPerspective());
+ // None of our AA draw rect calls can handle perspective yet
bool canApplyAA = width >=0 ? viewMatrix.rectStaysRect() : viewMatrix.preservesRightAngles();
if (needAA && canApplyAA) {
+ SkASSERT(!viewMatrix.hasPerspective());
SkRect devBoundRect;
viewMatrix.mapRect(&devBoundRect, rect);
SkAutoTUnref<GrDrawBatch> batch;
« no previous file with comments | « gm/perspshaders.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698