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

Unified Diff: include/core/SkRect.h

Issue 21877006: Add blend optimization helpers and use to convert rect draws to clears. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: tot Created 7 years, 5 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
Index: include/core/SkRect.h
diff --git a/include/core/SkRect.h b/include/core/SkRect.h
index 9f3b59a38f7a29936de4dc0c9cc4564ae3472278..386971e198f9486de53014eb3a5677531c862bdc 100644
--- a/include/core/SkRect.h
+++ b/include/core/SkRect.h
@@ -466,8 +466,9 @@ struct SK_API SkRect {
return !SkScalarsEqual((SkScalar*)&a, (SkScalar*)&b, 4);
}
- /** return the 4 points that enclose the rectangle
- */
+ /** return the 4 points that enclose the rectangle (top-left, top-right, bottom-right,
+ bottom-left)
+ */
void toQuad(SkPoint quad[4]) const;
reed1 2013/08/05 14:56:02 TODO: I wonder if this guy should take a CW, CCW p
/** Set this rectangle to the empty rectangle (0,0,0,0)

Powered by Google App Engine
This is Rietveld 408576698