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

Unified Diff: ui/views/widget/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/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index bae4c7754da730fbdcb273101fe74661be1fa71e..bf113e6e119de7bcb3ab99b2f21a1d185eba9ef7 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -826,8 +826,8 @@ void NativeWidgetAura::OnCaptureLost() {
delegate_->OnMouseCaptureLost();
}
-void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) {
- delegate_->OnNativeWidgetPaint(canvas);
+void NativeWidgetAura::OnPaint(const ui::PaintContext& context) {
+ delegate_->OnNativeWidgetPaint(context);
}
void NativeWidgetAura::OnDeviceScaleFactorChanged(float device_scale_factor) {

Powered by Google App Engine
This is Rietveld 408576698