| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/exo/compositor_frame_sink_holder.h" | 5 #include "components/exo/compositor_frame_sink_holder.h" |
| 6 | 6 |
| 7 #include "cc/resources/returned_resource.h" | 7 #include "cc/resources/returned_resource.h" |
| 8 #include "components/exo/surface.h" | 8 #include "components/exo/surface.h" |
| 9 | 9 |
| 10 namespace exo { | 10 namespace exo { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 needs_begin_frame_ = needs_begin_frame; | 40 needs_begin_frame_ = needs_begin_frame; |
| 41 OnNeedsBeginFrames(needs_begin_frame); | 41 OnNeedsBeginFrames(needs_begin_frame); |
| 42 } | 42 } |
| 43 | 43 |
| 44 void CompositorFrameSinkHolder::Satisfy(const cc::SurfaceSequence& sequence) { | 44 void CompositorFrameSinkHolder::Satisfy(const cc::SurfaceSequence& sequence) { |
| 45 frame_sink_->Satisfy(sequence); | 45 frame_sink_->Satisfy(sequence); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void CompositorFrameSinkHolder::Require(const cc::SurfaceId& id, | 48 void CompositorFrameSinkHolder::Require(const cc::SurfaceId& id, |
| 49 const cc::SurfaceSequence& sequence) { | 49 const cc::SurfaceSequence& sequence) { |
| 50 frame_sink_->Require(id.local_frame_id(), sequence); | 50 frame_sink_->Require(id.local_surface_id(), sequence); |
| 51 } | 51 } |
| 52 | 52 |
| 53 //////////////////////////////////////////////////////////////////////////////// | 53 //////////////////////////////////////////////////////////////////////////////// |
| 54 // cc::mojom::MojoCompositorFrameSinkClient overrides: | 54 // cc::mojom::MojoCompositorFrameSinkClient overrides: |
| 55 | 55 |
| 56 void CompositorFrameSinkHolder::DidReceiveCompositorFrameAck() { | 56 void CompositorFrameSinkHolder::DidReceiveCompositorFrameAck() { |
| 57 // TODO(staraz): Implement this | 57 // TODO(staraz): Implement this |
| 58 } | 58 } |
| 59 | 59 |
| 60 void CompositorFrameSinkHolder::OnBeginFrame(const cc::BeginFrameArgs& args) { | 60 void CompositorFrameSinkHolder::OnBeginFrame(const cc::BeginFrameArgs& args) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 bool needs_begin_frame = surface_ && surface_->NeedsBeginFrame(); | 123 bool needs_begin_frame = surface_ && surface_->NeedsBeginFrame(); |
| 124 if (needs_begin_frame == needs_begin_frame_) | 124 if (needs_begin_frame == needs_begin_frame_) |
| 125 return; | 125 return; |
| 126 | 126 |
| 127 needs_begin_frame_ = needs_begin_frame; | 127 needs_begin_frame_ = needs_begin_frame; |
| 128 OnNeedsBeginFrames(needs_begin_frame_); | 128 OnNeedsBeginFrames(needs_begin_frame_); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace exo | 131 } // namespace exo |
| OLD | NEW |