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

Unified Diff: ui/views/bubble/bubble_frame_view.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 6 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
Index: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index 2dd002e5a7192c4fa1d47b4089a66f845eb4c08c..3680d04d3857d6d1e938c4f4c0b12c300b6264c5 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -384,7 +384,8 @@ void BubbleFrameView::PaintChildren(const ui::PaintContext& context) {
NonClientFrameView::PaintChildren(context);
ui::PaintCache paint_cache;
- ui::PaintRecorder recorder(context, size(), &paint_cache);
+ ui::PaintRecorder recorder(context, context.ScaleToEffectivePixelSize(size()),
oshima 2017/06/16 00:15:03 shouldn't this be context.pixel_size()? and if so,
malaykeshav 2017/06/16 20:41:58 I think its not always the case. But in this case
+ &paint_cache);
OnPaintBorder(recorder.canvas());
}
« ui/compositor/paint_context.cc ('K') | « ui/gfx/canvas.cc ('k') | ui/views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698