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

Unified Diff: ash/laser/laser_pointer_view.cc

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: Add CompositorFrameSinkSupport::Create 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
« no previous file with comments | « ash/laser/laser_pointer_view.h ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ed07517062a5108b02edc70eede9e234a1086aa1 100644
--- a/ash/laser/laser_pointer_view.cc
+++ b/ash/laser/laser_pointer_view.cc
@@ -211,14 +211,15 @@ LaserPointerView::LaserPointerView(base::TimeDelta life_duration,
frame_sink_id_(aura::Env::GetInstance()
->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 */),
+ frame_sink_support_(cc::CompositorFrameSinkSupport::Create(
+ this,
+ aura::Env::GetInstance()
+ ->context_factory_private()
+ ->GetSurfaceManager(),
+ frame_sink_id_,
+ false /* is_root */,
+ true /* handles_frame_sink_id_invalidation */,
+ true /* needs_sync_points */)),
weak_ptr_factory_(this) {
widget_.reset(new views::Widget);
views::Widget::InitParams params;
@@ -378,22 +379,23 @@ void LaserPointerView::UpdateTime() {
}
void LaserPointerView::SetNeedsBeginFrame(bool needs_begin_frame) {
- frame_sink_support_.SetNeedsBeginFrame(needs_begin_frame);
+ frame_sink_support_->SetNeedsBeginFrame(needs_begin_frame);
}
void LaserPointerView::SubmitCompositorFrame(
const cc::LocalSurfaceId& local_surface_id,
cc::CompositorFrame frame) {
- frame_sink_support_.SubmitCompositorFrame(local_surface_id, std::move(frame));
+ frame_sink_support_->SubmitCompositorFrame(local_surface_id,
+ std::move(frame));
}
void LaserPointerView::BeginFrameDidNotSwap(
const cc::BeginFrameAck& begin_frame_ack) {
- frame_sink_support_.BeginFrameDidNotSwap(begin_frame_ack);
+ frame_sink_support_->BeginFrameDidNotSwap(begin_frame_ack);
}
void LaserPointerView::EvictFrame() {
- frame_sink_support_.EvictFrame();
+ frame_sink_support_->EvictFrame();
}
void LaserPointerView::DidReceiveCompositorFrameAck() {
« no previous file with comments | « ash/laser/laser_pointer_view.h ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698