mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: use std::make_unique/base::MakeRefCounted when possible (#29510)
This commit is contained in:
@@ -183,9 +183,9 @@ OffScreenRenderWidgetHostView::OffScreenRenderWidgetHostView(
|
||||
frame_rate_(frame_rate),
|
||||
size_(initial_size),
|
||||
painting_(painting),
|
||||
cursor_manager_(new content::CursorManager(this)),
|
||||
cursor_manager_(std::make_unique<content::CursorManager>(this)),
|
||||
mouse_wheel_phase_handler_(this),
|
||||
backing_(new SkBitmap) {
|
||||
backing_(std::make_unique<SkBitmap>()) {
|
||||
DCHECK(render_widget_host_);
|
||||
DCHECK(!render_widget_host_->GetView());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user