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

Unified Diff: chrome/browser/views/location_bar/location_bar_view.cc

Issue 2825018: Canvas refactoring part 3.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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: chrome/browser/views/location_bar/location_bar_view.cc
===================================================================
--- chrome/browser/views/location_bar/location_bar_view.cc (revision 50661)
+++ chrome/browser/views/location_bar/location_bar_view.cc (working copy)
@@ -27,7 +27,7 @@
#include "chrome/browser/views/location_bar/page_action_with_badge_view.h"
#include "chrome/browser/views/location_bar/selected_keyword_view.h"
#include "chrome/browser/views/location_bar/star_view.h"
-#include "gfx/canvas.h"
+#include "gfx/canvas_skia.h"
#include "gfx/color_utils.h"
#include "gfx/skia_util.h"
#include "grit/generated_resources.h"
@@ -556,7 +556,8 @@
// below, and all our other bubbles.
const SkScalar radius(SkIntToScalar(BubbleBorder::GetCornerRadius()));
bounds.Inset(kEdgeThickness, 0);
- canvas->drawRoundRect(gfx::RectToSkRect(bounds), radius, radius, paint);
+ canvas->AsCanvasSkia()->drawRoundRect(gfx::RectToSkRect(bounds), radius,
+ radius, paint);
} else {
canvas->FillRectInt(color, bounds.x(), bounds.y(), bounds.width(),
bounds.height());

Powered by Google App Engine
This is Rietveld 408576698