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

Unified Diff: ui/views/controls/image_view.cc

Issue 2680943002: ui: Clean up naming of paint-related identifiers (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « ui/views/controls/focusable_rounded_border_mac.cc ('k') | ui/views/controls/md_slider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/image_view.cc
diff --git a/ui/views/controls/image_view.cc b/ui/views/controls/image_view.cc
index 22f0f98ef0e2f8854c782767ca44db0da99023c2..edd639ed482baad9e0c89b4700aec447f0a5c215 100644
--- a/ui/views/controls/image_view.cc
+++ b/ui/views/controls/image_view.cc
@@ -221,11 +221,12 @@ void ImageView::OnPaintImage(gfx::Canvas* canvas) {
if (image_bounds.size() != gfx::Size(image_.width(), image_.height())) {
// Resize case
- cc::PaintFlags paint;
- paint.setFilterQuality(kLow_SkFilterQuality);
+ cc::PaintFlags flags;
+ flags.setFilterQuality(kLow_SkFilterQuality);
canvas->DrawImageInt(image_, 0, 0, image_.width(), image_.height(),
- image_bounds.x(), image_bounds.y(), image_bounds.width(),
- image_bounds.height(), true, paint);
+ image_bounds.x(), image_bounds.y(),
+ image_bounds.width(), image_bounds.height(), true,
+ flags);
} else {
canvas->DrawImageInt(image_, image_bounds.x(), image_bounds.y());
}
« no previous file with comments | « ui/views/controls/focusable_rounded_border_mac.cc ('k') | ui/views/controls/md_slider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698