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

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

Issue 1125193004: Simplify accelerated paint and remove windows CanvasSkiaPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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 "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 input_method()->OnUntranslatedIMEMessage(msg, result); 891 input_method()->OnUntranslatedIMEMessage(msg, result);
892 } 892 }
893 893
894 void DesktopWindowTreeHostWin::HandleInputLanguageChange( 894 void DesktopWindowTreeHostWin::HandleInputLanguageChange(
895 DWORD character_set, 895 DWORD character_set,
896 HKL input_language_id) { 896 HKL input_language_id) {
897 desktop_native_widget_aura_->input_method_event_filter()-> 897 desktop_native_widget_aura_->input_method_event_filter()->
898 input_method()->OnInputLocaleChanged(); 898 input_method()->OnInputLocaleChanged();
899 } 899 }
900 900
901 bool DesktopWindowTreeHostWin::HandlePaintAccelerated( 901 void DesktopWindowTreeHostWin::HandlePaintAccelerated(
902 const gfx::Rect& invalid_rect) { 902 const gfx::Rect& invalid_rect) {
903 return native_widget_delegate_->OnNativeWidgetPaintAccelerated(invalid_rect);
904 }
905
906 void DesktopWindowTreeHostWin::HandlePaint(gfx::Canvas* canvas) {
907 // It appears possible to get WM_PAINT after WM_DESTROY.
908 if (compositor()) 903 if (compositor())
909 compositor()->ScheduleRedrawRect(gfx::Rect()); 904 compositor()->ScheduleRedrawRect(invalid_rect);
910 } 905 }
911 906
912 bool DesktopWindowTreeHostWin::HandleTooltipNotify(int w_param, 907 bool DesktopWindowTreeHostWin::HandleTooltipNotify(int w_param,
913 NMHDR* l_param, 908 NMHDR* l_param,
914 LRESULT* l_result) { 909 LRESULT* l_result) {
915 return tooltip_ && tooltip_->HandleNotify(w_param, l_param, l_result); 910 return tooltip_ && tooltip_->HandleNotify(w_param, l_param, l_result);
916 } 911 }
917 912
918 void DesktopWindowTreeHostWin::HandleMenuLoop(bool in_menu_loop) { 913 void DesktopWindowTreeHostWin::HandleMenuLoop(bool in_menu_loop) {
919 if (in_menu_loop) { 914 if (in_menu_loop) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 993
999 // static 994 // static
1000 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 995 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
1001 internal::NativeWidgetDelegate* native_widget_delegate, 996 internal::NativeWidgetDelegate* native_widget_delegate,
1002 DesktopNativeWidgetAura* desktop_native_widget_aura) { 997 DesktopNativeWidgetAura* desktop_native_widget_aura) {
1003 return new DesktopWindowTreeHostWin(native_widget_delegate, 998 return new DesktopWindowTreeHostWin(native_widget_delegate,
1004 desktop_native_widget_aura); 999 desktop_native_widget_aura);
1005 } 1000 }
1006 1001
1007 } // namespace views 1002 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.h ('k') | ui/views/widget/native_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698