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

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: 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..3aea30b00b2a04022d7ce21d8fce5920f3a1aa83 100644
--- a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
@@ -79,9 +79,6 @@ void PaintFrameImagesInRoundRect(gfx::Canvas* canvas,
if (frame_image.isNull() && frame_overlay_image.isNull()) {
flags.setColor(background_color);
canvas->DrawRect(bounds, flags);
- } else if (frame_overlay_image.isNull()) {
- flags.setAlpha(alpha);
- canvas->DrawImageInt(frame_image, -image_inset_x, 0, flags);
} else {
flags.setAlpha(alpha);
canvas->SaveLayerWithFlags(flags);
danakj 2017/03/24 14:59:54 SaveLayer isn't free, we should keep the middle br
Qiang(Joe) Xu 2017/03/24 16:22:05 Done.
« 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