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

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: do not eliminate the last TileImageInt 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 | ui/gfx/canvas.h » ('j') | 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..cd417c74d39b13c9d079a5555a30a9382103f4f9 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(),
+ bounds.height(), &flags);
} else {
flags.setAlpha(alpha);
canvas->SaveLayerWithFlags(flags);
« no previous file with comments | « no previous file | ui/gfx/canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698