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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 1831163002: Fix another painting regression caused by my patch to address painting problems with the fullscreen… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "third_party/skia/include/core/SkPath.h" 7 #include "third_party/skia/include/core/SkPath.h"
8 #include "third_party/skia/include/core/SkRegion.h" 8 #include "third_party/skia/include/core/SkRegion.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 if (compositor()) 906 if (compositor())
907 compositor()->DisableSwapUntilResize(); 907 compositor()->DisableSwapUntilResize();
908 } 908 }
909 909
910 void DesktopWindowTreeHostWin::HandleWindowSizeChanged() { 910 void DesktopWindowTreeHostWin::HandleWindowSizeChanged() {
911 // A resize may not have occurred if the window size happened not to have 911 // A resize may not have occurred if the window size happened not to have
912 // changed (can occur on Windows 10 when snapping a window to the side of 912 // changed (can occur on Windows 10 when snapping a window to the side of
913 // the screen). In that case do a resize to the current size to reenable 913 // the screen). In that case do a resize to the current size to reenable
914 // swaps. 914 // swaps.
915 if (compositor()) { 915 if (compositor()) {
916 compositor()->SetScaleAndSize(compositor()->device_scale_factor(), 916 compositor()->SetScaleAndSize(
917 GetBounds().size()); 917 compositor()->device_scale_factor(),
918 message_handler_->GetClientAreaBounds().size());
918 } 919 }
919 } 920 }
920 921
921 //////////////////////////////////////////////////////////////////////////////// 922 ////////////////////////////////////////////////////////////////////////////////
922 // DesktopWindowTreeHostWin, private: 923 // DesktopWindowTreeHostWin, private:
923 924
924 Widget* DesktopWindowTreeHostWin::GetWidget() { 925 Widget* DesktopWindowTreeHostWin::GetWidget() {
925 return native_widget_delegate_->AsWidget(); 926 return native_widget_delegate_->AsWidget();
926 } 927 }
927 928
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 963
963 // static 964 // static
964 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 965 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
965 internal::NativeWidgetDelegate* native_widget_delegate, 966 internal::NativeWidgetDelegate* native_widget_delegate,
966 DesktopNativeWidgetAura* desktop_native_widget_aura) { 967 DesktopNativeWidgetAura* desktop_native_widget_aura) {
967 return new DesktopWindowTreeHostWin(native_widget_delegate, 968 return new DesktopWindowTreeHostWin(native_widget_delegate,
968 desktop_native_widget_aura); 969 desktop_native_widget_aura);
969 } 970 }
970 971
971 } // namespace views 972 } // namespace views
OLDNEW
« 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