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

Unified Diff: chrome/browser/chromeos/display/overscan_calibrator.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: chrome/browser/chromeos/display/overscan_calibrator.cc
diff --git a/chrome/browser/chromeos/display/overscan_calibrator.cc b/chrome/browser/chromeos/display/overscan_calibrator.cc
index 33db2f9cb74c198a0e1fd065a6e99eca6ab5727d..d38d57468b564f2259d8c2d1cc96ccd430914519 100644
--- a/chrome/browser/chromeos/display/overscan_calibrator.cc
+++ b/chrome/browser/chromeos/display/overscan_calibrator.cc
@@ -115,7 +115,8 @@ void OverscanCalibrator::UpdateInsets(const gfx::Insets& insets) {
calibration_layer_->SchedulePaint(calibration_layer_->bounds());
}
-void OverscanCalibrator::OnPaintLayer(gfx::Canvas* canvas) {
+void OverscanCalibrator::OnPaintLayer(const ui::PaintContext& context) {
+ gfx::Canvas* canvas = context.canvas();
static const SkColor kTransparent = SkColorSetARGB(0, 0, 0, 0);
gfx::Rect full_bounds = calibration_layer_->bounds();
gfx::Rect inner_bounds = full_bounds;

Powered by Google App Engine
This is Rietveld 408576698