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

Unified Diff: ash/utility/screenshot_controller.cc

Issue 2679423002: ash: 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 | « ash/touch_hud/touch_hud_renderer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/utility/screenshot_controller.cc
diff --git a/ash/utility/screenshot_controller.cc b/ash/utility/screenshot_controller.cc
index dc207637654198e0979ab36838fd91ad9637bab0..5728596e92c75d01fe294ffed1367cfaefadd482 100644
--- a/ash/utility/screenshot_controller.cc
+++ b/ash/utility/screenshot_controller.cc
@@ -160,30 +160,30 @@ class ScreenshotController::ScreenshotLayer : public ui::LayerOwner,
if (pseudo_cursor_point.y() == region_.y())
pseudo_cursor_point.Offset(0, -1);
- cc::PaintFlags paint;
- paint.setAntiAlias(false);
- paint.setStrokeWidth(1);
- paint.setColor(SK_ColorWHITE);
- paint.setBlendMode(SkBlendMode::kSrc);
+ cc::PaintFlags flags;
+ flags.setAntiAlias(false);
+ flags.setStrokeWidth(1);
+ flags.setColor(SK_ColorWHITE);
+ flags.setBlendMode(SkBlendMode::kSrc);
gfx::Vector2d width(kCursorSize / 2, 0);
gfx::Vector2d height(0, kCursorSize / 2);
gfx::Vector2d white_x_offset(1, -1);
gfx::Vector2d white_y_offset(1, -1);
// Horizontal
canvas->DrawLine(pseudo_cursor_point - width + white_x_offset,
- pseudo_cursor_point + width + white_x_offset, paint);
- paint.setStrokeWidth(1);
+ pseudo_cursor_point + width + white_x_offset, flags);
+ flags.setStrokeWidth(1);
// Vertical
canvas->DrawLine(pseudo_cursor_point - height + white_y_offset,
- pseudo_cursor_point + height + white_y_offset, paint);
+ pseudo_cursor_point + height + white_y_offset, flags);
- paint.setColor(SK_ColorBLACK);
+ flags.setColor(SK_ColorBLACK);
// Horizontal
canvas->DrawLine(pseudo_cursor_point - width, pseudo_cursor_point + width,
- paint);
+ flags);
// Vertical
canvas->DrawLine(pseudo_cursor_point - height, pseudo_cursor_point + height,
- paint);
+ flags);
}
bool draw_inactive_overlay_;
« no previous file with comments | « ash/touch_hud/touch_hud_renderer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698