Index: ui/views/cocoa/bridged_content_view.mm |
diff --git a/ui/views/cocoa/bridged_content_view.mm b/ui/views/cocoa/bridged_content_view.mm |
index fa0731c8ae3ffcbc017d794080f911c56297c6d2..5325a58a068d4c52ef80576dbbe99e0944816b9b 100644 |
--- a/ui/views/cocoa/bridged_content_view.mm |
+++ b/ui/views/cocoa/bridged_content_view.mm |
@@ -8,7 +8,7 @@ |
#import "base/mac/scoped_nsobject.h" |
#include "base/strings/sys_string_conversions.h" |
#include "ui/base/ime/text_input_client.h" |
-#include "ui/compositor/paint_context.h" |
+#include "ui/compositor/canvas_painter.h" |
#import "ui/events/cocoa/cocoa_event_utils.h" |
#include "ui/events/keycodes/dom/dom_code.h" |
#import "ui/events/keycodes/keyboard_code_conversion_mac.h" |
@@ -312,7 +312,8 @@ bool DispatchEventToMenu(views::Widget* widget, ui::KeyboardCode key_code) { |
return; |
gfx::CanvasSkiaPaint canvas(dirtyRect, false /* opaque */); |
- hostedView_->GetWidget()->OnNativeWidgetPaint(ui::PaintContext(&canvas)); |
+ hostedView_->GetWidget()->OnNativeWidgetPaint( |
+ ui::CanvasPainter(&canvas, 1.f).context()); |
} |
- (NSTextInputContext*)inputContext { |