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

Unified Diff: base/gfx/platform_canvas_unittest.cc

Issue 5644: Add platform_canvas_unittest.cc (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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
Index: base/gfx/platform_canvas_unittest.cc
===================================================================
--- base/gfx/platform_canvas_unittest.cc (revision 2768)
+++ base/gfx/platform_canvas_unittest.cc (working copy)
@@ -78,8 +78,10 @@
CGContextRef context = canvas.beginPlatformPaint();
CGRect inner_rc = CGRectMake(x, y, w, h);
- CGFloat black[] = { 0.0, 0.0, 0.0, 1.0 }; // RGBA opaque black
- CGContextSetFillColor(context, black);
+ // RGBA opaque black
+ CGColorRef black = CGColorCreateGenericRGB(0.0, 0.0, 0.0, 1.0);
+ CGContextSetFillColorWithColor(context, black);
+ CGColorRelease(black);
CGContextFillRect(context, inner_rc);
canvas.endPlatformPaint();

Powered by Google App Engine
This is Rietveld 408576698