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

Unified Diff: chrome/common/gfx/chrome_canvas.cc

Issue 67149: Fixes regression in painting info bubble. This is the result of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
« chrome/browser/views/info_bubble.cc ('K') | « chrome/common/gfx/chrome_canvas.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gfx/chrome_canvas.cc
===================================================================
--- chrome/common/gfx/chrome_canvas.cc (revision 13715)
+++ chrome/common/gfx/chrome_canvas.cc (working copy)
@@ -83,6 +83,15 @@
drawIRect(rc, paint);
}
+void ChromeCanvas::DrawLineInt(const SkColor& color,
+ int x1, int y1, int x2, int y2) {
+ SkPaint paint;
+ paint.setColor(color);
+ paint.setStrokeWidth(SkIntToScalar(1));
+ drawLine(SkIntToScalar(x1), SkIntToScalar(y1), SkIntToScalar(x2),
+ SkIntToScalar(y2), paint);
+}
+
void ChromeCanvas::DrawFocusRect(int x, int y, int width, int height) {
// Create a 2D bitmap containing alternating on/off pixels - we do this
// so that you never get two pixels of the same color around the edges
« chrome/browser/views/info_bubble.cc ('K') | « chrome/common/gfx/chrome_canvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698