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

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

Issue 8122013: Allow CanvasSkia to bind to an existing SkCanvas. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 1 more fix Created 9 years, 2 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/ui/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 66fefaab9a2d224312350cb27cf4f191d6b1e7f2..9eba4ae79e70997b6ffd314c350a5ac8dc96af60 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -744,8 +744,8 @@ void LocationBarView::OnPaint(gfx::Canvas* canvas) {
const SkScalar radius(SkIntToScalar(
views::BubbleBorder::GetCornerRadius()));
bounds.Inset(kNormalHorizontalEdgeThickness, 0);
- canvas->AsCanvasSkia()->drawRoundRect(gfx::RectToSkRect(bounds), radius,
- radius, paint);
+ canvas->GetSkCanvas()->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