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

Side by Side Diff: services/ui/ws/compositor_frame_sink_client_binding.cc

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/ui/ws/compositor_frame_sink_client_binding.h" 5 #include "services/ui/ws/compositor_frame_sink_client_binding.h"
6 6
7 namespace ui { 7 namespace ui {
8 namespace ws { 8 namespace ws {
9 9
10 CompositorFrameSinkClientBinding::CompositorFrameSinkClientBinding( 10 CompositorFrameSinkClientBinding::CompositorFrameSinkClientBinding(
(...skipping 19 matching lines...) Expand all
30 local_surface_id_ = local_surface_id; 30 local_surface_id_ = local_surface_id;
31 gfx::Size frame_size = frame.render_pass_list.back()->output_rect.size(); 31 gfx::Size frame_size = frame.render_pass_list.back()->output_rect.size();
32 display_private_->ResizeDisplay(frame_size); 32 display_private_->ResizeDisplay(frame_size);
33 display_private_->SetLocalSurfaceId(local_surface_id_, 33 display_private_->SetLocalSurfaceId(local_surface_id_,
34 frame.metadata.device_scale_factor); 34 frame.metadata.device_scale_factor);
35 } 35 }
36 compositor_frame_sink_->SubmitCompositorFrame(local_surface_id_, 36 compositor_frame_sink_->SubmitCompositorFrame(local_surface_id_,
37 std::move(frame)); 37 std::move(frame));
38 } 38 }
39 39
40 void CompositorFrameSinkClientBinding::BeginFrameDidNotSwap( 40 void CompositorFrameSinkClientBinding::DidNotProduceFrame(
41 const cc::BeginFrameAck& ack) { 41 const cc::BeginFrameAck& ack) {
42 compositor_frame_sink_->BeginFrameDidNotSwap(ack); 42 compositor_frame_sink_->DidNotProduceFrame(ack);
43 } 43 }
44 44
45 void CompositorFrameSinkClientBinding::EvictCurrentSurface() { 45 void CompositorFrameSinkClientBinding::EvictCurrentSurface() {
46 compositor_frame_sink_->EvictCurrentSurface(); 46 compositor_frame_sink_->EvictCurrentSurface();
47 } 47 }
48 48
49 } // namespace ws 49 } // namespace ws
50 } // namespace ui 50 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/compositor_frame_sink_client_binding.h ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698