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

Unified Diff: ui/views/widget/native_widget_win.cc

Issue 10701063: Cleanup gfx::Canvas now that 10562027 has landed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « ui/views/controls/tree/tree_view_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_win.cc
diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc
index b04bc7f46be5d028ee2bca51afb822a04e5186be..6b832f4d400988760237ed7c2a56deb73da4050e 100644
--- a/ui/views/widget/native_widget_win.cc
+++ b/ui/views/widget/native_widget_win.cc
@@ -2511,7 +2511,8 @@ void NativeWidgetWin::ClientAreaSizeChanged() {
std::max(0, static_cast<int>(r.bottom - r.top)));
delegate_->OnNativeWidgetSizeChanged(s);
if (use_layered_buffer_)
- layered_window_contents_.reset(new gfx::Canvas(s, false));
+ layered_window_contents_.reset(
+ new gfx::Canvas(s, ui::SCALE_FACTOR_100P, false));
}
void NativeWidgetWin::UpdateDWMFrame() {
« no previous file with comments | « ui/views/controls/tree/tree_view_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698