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

Unified Diff: content/renderer/sad_plugin.cc

Issue 2697663002: Clean up naming of paint-related identifiers (Closed)
Patch Set: Rebase 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 | « content/renderer/media/webmediaplayer_ms.cc ('k') | media/renderers/skcanvas_video_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/sad_plugin.cc
diff --git a/content/renderer/sad_plugin.cc b/content/renderer/sad_plugin.cc
index 64588d72d7d8e6f5ef4c0d7f2bde3bda602c6d51..9f1cee156a9f949652336bb573e55662276ee7ab 100644
--- a/content/renderer/sad_plugin.cc
+++ b/content/renderer/sad_plugin.cc
@@ -25,11 +25,11 @@ void PaintSadPlugin(blink::WebCanvas* webcanvas,
// Add a translation so that it appears at the origin of plugin rect.
canvas->translate(plugin_rect.x(), plugin_rect.y());
- cc::PaintFlags paint;
- paint.setStyle(cc::PaintFlags::kFill_Style);
- paint.setColor(SK_ColorBLACK);
+ cc::PaintFlags flags;
+ flags.setStyle(cc::PaintFlags::kFill_Style);
+ flags.setColor(SK_ColorBLACK);
canvas->drawRectCoords(0, 0, SkIntToScalar(width), SkIntToScalar(height),
- paint);
+ flags);
canvas->drawBitmap(
sad_plugin_bitmap,
SkIntToScalar(std::max(0, (width - sad_plugin_bitmap.width()) / 2)),
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.cc ('k') | media/renderers/skcanvas_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698