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

Unified Diff: ash/laser/laser_pointer_view.cc

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: Set needs_sync_points Created 3 years, 8 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: ash/laser/laser_pointer_view.cc
diff --git a/ash/laser/laser_pointer_view.cc b/ash/laser/laser_pointer_view.cc
index aa39b8878f959145e2eb9164a65bfb0989d1a516..81c1a3e1f24b451d633ce8f94f47c9fef50d0894 100644
--- a/ash/laser/laser_pointer_view.cc
+++ b/ash/laser/laser_pointer_view.cc
@@ -212,14 +212,14 @@ LaserPointerView::LaserPointerView(base::TimeDelta life_duration,
->context_factory_private()
->AllocateFrameSinkId()),
frame_sink_support_(this,
- aura::Env::GetInstance()
- ->context_factory_private()
- ->GetSurfaceManager(),
frame_sink_id_,
false /* is_root */,
- true /* handles_frame_sink_id_invalidation */,
- true /* needs_sync_points */),
+ true /* handles_frame_sink_id_invalidation */),
weak_ptr_factory_(this) {
+ constexpr bool needs_sync_points = true;
+ frame_sink_support_.Init(
+ aura::Env::GetInstance()->context_factory_private()->GetSurfaceManager(),
+ needs_sync_points);
widget_.reset(new views::Widget);
views::Widget::InitParams params;
params.type = views::Widget::InitParams::TYPE_WINDOW_FRAMELESS;

Powered by Google App Engine
This is Rietveld 408576698