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

Unified Diff: ui/views/shadow_border.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/round_rect_painter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/shadow_border.cc
diff --git a/ui/views/shadow_border.cc b/ui/views/shadow_border.cc
index 50e143a3c0b1209280db0f65a6d685f93c4b4c9a..e10c447c6c918c306a961db8ee73d3c92260c480 100644
--- a/ui/views/shadow_border.cc
+++ b/ui/views/shadow_border.cc
@@ -35,15 +35,15 @@ ShadowBorder::~ShadowBorder() {
// TODO(sidharthms): Re-painting a shadow looper on every paint call may yield
// poor performance. Ideally we should be caching the border to bitmaps.
void ShadowBorder::Paint(const views::View& view, gfx::Canvas* canvas) {
- cc::PaintFlags paint;
+ cc::PaintFlags flags;
std::vector<gfx::ShadowValue> shadows;
shadows.push_back(shadow_value_);
- paint.setLooper(gfx::CreateShadowDrawLooper(shadows));
- paint.setColor(SK_ColorTRANSPARENT);
- paint.setStrokeJoin(cc::PaintFlags::kRound_Join);
+ flags.setLooper(gfx::CreateShadowDrawLooper(shadows));
+ flags.setColor(SK_ColorTRANSPARENT);
+ flags.setStrokeJoin(cc::PaintFlags::kRound_Join);
gfx::Rect bounds(view.size());
bounds.Inset(-gfx::ShadowValue::GetMargin(shadows));
- canvas->DrawRect(bounds, paint);
+ canvas->DrawRect(bounds, flags);
}
gfx::Insets ShadowBorder::GetInsets() const {
« no previous file with comments | « ui/views/round_rect_painter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698