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

Unified Diff: content/browser/web_contents/aura/gesture_nav_simple.cc

Issue 2697663002: 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: content/browser/web_contents/aura/gesture_nav_simple.cc
diff --git a/content/browser/web_contents/aura/gesture_nav_simple.cc b/content/browser/web_contents/aura/gesture_nav_simple.cc
index cef6749cae6cc9163613a7aee38f8e069d97eab5..1a0e4255f62563d1e1d78a78a1e0c872db3d5a37 100644
--- a/content/browser/web_contents/aura/gesture_nav_simple.cc
+++ b/content/browser/web_contents/aura/gesture_nav_simple.cc
@@ -90,10 +90,10 @@ class ArrowLayerDelegate : public ui::LayerDelegate {
private:
// ui::LayerDelegate:
void OnPaintLayer(const ui::PaintContext& context) override {
- cc::PaintFlags paint;
- paint.setColor(SkColorSetARGB(0xa0, 0, 0, 0));
- paint.setStyle(cc::PaintFlags::kFill_Style);
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setColor(SkColorSetARGB(0xa0, 0, 0, 0));
+ flags.setStyle(cc::PaintFlags::kFill_Style);
+ flags.setAntiAlias(true);
// Set the recording size to be the size of the |arrow_| layer, and draw a
// half circle (the other half will be clipped), then an arrow image inside
@@ -101,7 +101,7 @@ class ArrowLayerDelegate : public ui::LayerDelegate {
ui::PaintRecorder recorder(context, gfx::Size(kArrowWidth, kArrowHeight));
recorder.canvas()->DrawCircle(
gfx::Point(left_arrow_ ? 0 : kArrowWidth, kArrowHeight / 2),
- kArrowWidth, paint);
+ kArrowWidth, flags);
recorder.canvas()->DrawImageInt(
*image_.ToImageSkia(), left_arrow_ ? 0 : kArrowWidth - image_.Width(),
(kArrowHeight - image_.Height()) / 2);

Powered by Google App Engine
This is Rietveld 408576698