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

Unified Diff: ui/views/cocoa/bridged_native_widget.mm

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
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.h ('k') | ui/views/controls/native/native_view_host_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/bridged_native_widget.mm
diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm
index 874dce699a4a1cfd727fc5b731547b101a8e9e7a..efe1785b4812e8463364e7f1742bafe0eb6fae60 100644
--- a/ui/views/cocoa/bridged_native_widget.mm
+++ b/ui/views/cocoa/bridged_native_widget.mm
@@ -594,9 +594,9 @@ void BridgedNativeWidget::OnDidChangeFocus(View* focused_before,
////////////////////////////////////////////////////////////////////////////////
// BridgedNativeWidget, LayerDelegate:
-void BridgedNativeWidget::OnPaintLayer(gfx::Canvas* canvas) {
+void BridgedNativeWidget::OnPaintLayer(const ui::PaintContext& context) {
DCHECK(window_visible_);
- native_widget_mac_->GetWidget()->OnNativeWidgetPaint(canvas);
+ native_widget_mac_->GetWidget()->OnNativeWidgetPaint(context);
}
void BridgedNativeWidget::OnDelegatedFrameDamage(
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.h ('k') | ui/views/controls/native/native_view_host_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698