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

Unified Diff: chrome/browser/chromeos/display/overscan_calibrator.cc

Issue 1057873004: Pass a ui::PaintContext from ui::Layer to layer delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer-paintcontext: mac 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..b7eebc0e3654b0922cc018f7e4607051291c4f42 100644
--- a/chrome/browser/chromeos/display/overscan_calibrator.cc
+++ b/chrome/browser/chromeos/display/overscan_calibrator.cc
@@ -12,6 +12,7 @@
#include "base/callback.h"
#include "ui/aura/window.h"
#include "ui/compositor/layer.h"
+#include "ui/compositor/paint_context.h"
#include "ui/gfx/canvas.h"
namespace chromeos {
@@ -115,7 +116,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;
« no previous file with comments | « chrome/browser/chromeos/display/overscan_calibrator.h ('k') | chrome/browser/chromeos/ui/accessibility_focus_ring_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698