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

Unified Diff: services/ui/ws/frame_generator.cc

Issue 2683583005: Move display_ From CompositorFrameSinkSupport To GpuDisplayCompositorFrameSink (Closed)
Patch Set: addressed comments Created 3 years, 10 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: services/ui/ws/frame_generator.cc
diff --git a/services/ui/ws/frame_generator.cc b/services/ui/ws/frame_generator.cc
index 4a7809f0adcbc91673f17ed352265627926b68e5..8ea32bd58816a7e2f6d1655f1251b1df3742652b 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -89,6 +89,8 @@ void FrameGenerator::OnBeginFrame(const cc::BeginFrameArgs& begin_frame_arags) {
if (!local_surface_id_.is_valid() ||
frame_size != last_submitted_frame_size_) {
local_surface_id_ = id_allocator_.GenerateId();
+ display_private_->SetLocalSurfaceId(local_surface_id_,
danakj 2017/02/08 21:54:40 DirectCompositorFrameSink::SubmitCompositorFrame d
Alex Z. 2017/02/08 22:07:52 I wanted to only do this when local surface id cha
danakj 2017/02/08 23:31:16 Well.. we shouldn't do work we don't need to but I
Alex Z. 2017/02/10 19:44:35 Display::SetLocalSurfaceId() checks at the beginni
+ frame.metadata.device_scale_factor);
display_private_->ResizeDisplay(frame_size);
}

Powered by Google App Engine
This is Rietveld 408576698