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

Unified Diff: chrome/browser/ui/views/frame/browser_header_painter_ash.cc

Issue 2770943004: cros: Fix browser header wrongly drawn frame image (Closed)
Patch Set: keep the middle branch and changed to Tile Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_header_painter_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
index eeb0c98f6a2f829d7ca245441054a7aae4e586f5..d3ff4547595b0e84541fb4bd30f7475deb5dddb0 100644
--- a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
@@ -81,7 +81,8 @@ void PaintFrameImagesInRoundRect(gfx::Canvas* canvas,
canvas->DrawRect(bounds, flags);
} else if (frame_overlay_image.isNull()) {
flags.setAlpha(alpha);
- canvas->DrawImageInt(frame_image, -image_inset_x, 0, flags);
+ canvas->TileImageInt(frame_image, image_inset_x, 0, 0, 0, bounds.width(),
danakj 2017/03/24 16:29:30 pkasting should confirm the -inset to +inset is ri
Peter Kasting 2017/03/24 20:08:12 The coord change is fine (changes from dest to sou
danakj 2017/03/24 20:22:52 Oh oops. Using the underlying PaintCanvas directly
Peter Kasting 2017/03/24 20:26:38 If TileImageInt() got a with-flags variant, and Dr
danakj 2017/03/24 20:33:54 I thought you need the SaveLayer to draw the conte
Peter Kasting 2017/03/24 20:39:40 Oh. Yeah, that's probably correct. Argh. I stil
danakj 2017/03/24 20:40:50 Memory allocs/bandwidth are one of the best things
+ bounds.height());
} else {
flags.setAlpha(alpha);
canvas->SaveLayerWithFlags(flags);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698