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

Unified Diff: ash/root_window_controller.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: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 1e1c5bdaa20937b8e9146734d587308473a3bf39..8a013bacb1b419edd73038eb52ffcb1ea429e77c 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -235,7 +235,7 @@ class EmptyWindowDelegate : public aura::WindowDelegate {
}
bool CanFocus() override { return false; }
void OnCaptureLost() override {}
- void OnPaint(gfx::Canvas* canvas) override {}
+ void OnPaint(const ui::PaintContext& context) override {}
void OnDeviceScaleFactorChanged(float device_scale_factor) override {}
void OnWindowDestroying(aura::Window* window) override {}
void OnWindowDestroyed(aura::Window* window) override { delete this; }

Powered by Google App Engine
This is Rietveld 408576698