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

Unified Diff: chrome/browser/ui/views/dropdown_bar_view.cc

Issue 10701063: Cleanup gfx::Canvas now that 10562027 has landed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: chrome/browser/ui/views/dropdown_bar_view.cc
diff --git a/chrome/browser/ui/views/dropdown_bar_view.cc b/chrome/browser/ui/views/dropdown_bar_view.cc
index 4efcd28ceb38f08cb6e4c35c31011c7502a55dd2..0c76e9f5ea8ea9c2c88d8c007836905d2b2947ab 100644
--- a/chrome/browser/ui/views/dropdown_bar_view.cc
+++ b/chrome/browser/ui/views/dropdown_bar_view.cc
@@ -111,11 +111,13 @@ void DropdownBarView::OnPaint(gfx::Canvas* canvas) {
if (animation_offset() > 0) {
gfx::Canvas animating_edges(
- gfx::Size(bounds().width(), kAnimatingEdgeHeight), false);
+ gfx::Size(bounds().width(), kAnimatingEdgeHeight),
+ canvas->scale_factor(),
+ false);
canvas->Translate(bounds().origin());
OnPaintBackground(&animating_edges);
OnPaintBorder(&animating_edges);
- canvas->DrawImageInt(animating_edges.ExtractBitmap(), bounds().x(),
+ canvas->DrawImageInt(animating_edges.ExtractImageRep(), bounds().x(),
animation_offset());
}
}

Powered by Google App Engine
This is Rietveld 408576698