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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 1053143002: Make View::Paint use ui::PaintRecorder to access PaintContext's canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: paintrecorder: . Created 5 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
Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index 8b4b127d88715ab626cd5634ec648463d9d132d5..76a1aaaf78369149dff197a28b8ca5411aa13245 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -1011,8 +1011,8 @@ void DesktopNativeWidgetAura::OnCaptureLost() {
native_widget_delegate_->OnMouseCaptureLost();
}
-void DesktopNativeWidgetAura::OnPaint(gfx::Canvas* canvas) {
- native_widget_delegate_->OnNativeWidgetPaint(canvas);
+void DesktopNativeWidgetAura::OnPaint(const ui::PaintContext& context) {
+ native_widget_delegate_->OnNativeWidgetPaint(context);
}
void DesktopNativeWidgetAura::OnDeviceScaleFactorChanged(

Powered by Google App Engine
This is Rietveld 408576698