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

Side by Side Diff: components/exo/compositor_frame_sink_holder.cc

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (Closed)
Patch Set: c 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 unified diff | Download patch
« no previous file with comments | « components/exo/compositor_frame_sink.cc ('k') | components/exo/surface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/exo/compositor_frame_sink.cc ('k') | components/exo/surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698