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

Unified Diff: src/core/SkCanvas.cpp

Issue 23484007: call drawRect to try GrAARectRenderer if the path is a rect (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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/core/SkCanvas.cpp
===================================================================
--- src/core/SkCanvas.cpp (revision 10968)
+++ src/core/SkCanvas.cpp (working copy)
@@ -1720,6 +1720,13 @@
return;
}
+ // if the path is a rect, we can call drawRect to try GrAARectRenderer.
bsalomon 2013/08/29 12:49:58 This comment is specific to SkGpuDevice, perhaps i
+ SkRect rect;
+ if (path.isRect(&rect)) {
+ drawRect(rect, paint);
bsalomon 2013/08/29 12:49:58 style-nit: this->drawRect(...);
+ return;
+ }
+
LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type)
while (iter.next()) {
« 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