Chromium Code Reviews| 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); |