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

Unified Diff: cc/trees/layer_tree_host_pixeltest_scrollbars.cc

Issue 2678903003: cc: 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
Index: cc/trees/layer_tree_host_pixeltest_scrollbars.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_scrollbars.cc b/cc/trees/layer_tree_host_pixeltest_scrollbars.cc
index 69fec991767230340ab56758f8ad62dfa5e4c4ba..683a5d491a5b27ba3e99e03c0c522f9e15eca615 100644
--- a/cc/trees/layer_tree_host_pixeltest_scrollbars.cc
+++ b/cc/trees/layer_tree_host_pixeltest_scrollbars.cc
@@ -53,17 +53,17 @@ class PaintedScrollbar : public Scrollbar {
void PaintPart(PaintCanvas* canvas,
ScrollbarPart part,
const gfx::Rect& content_rect) override {
- PaintFlags paint;
- paint.setStyle(PaintFlags::kStroke_Style);
- paint.setStrokeWidth(SkIntToScalar(paint_scale_));
- paint.setColor(color_);
+ PaintFlags flags;
+ flags.setStyle(PaintFlags::kStroke_Style);
+ flags.setStrokeWidth(SkIntToScalar(paint_scale_));
+ flags.setColor(color_);
gfx::Rect inset_rect = content_rect;
while (!inset_rect.IsEmpty()) {
int big = paint_scale_ + 2;
int small = paint_scale_;
inset_rect.Inset(big, big, small, small);
- canvas->drawRect(RectToSkRect(inset_rect), paint);
+ canvas->drawRect(RectToSkRect(inset_rect), flags);
inset_rect.Inset(big, big, small, small);
}
}

Powered by Google App Engine
This is Rietveld 408576698