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

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

Issue 2755463002: [cc] Fix CompositorFrameSinkSupport BeginFrameAck interface. (Closed)
Patch Set: sync Created 3 years, 9 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.h ('k') | components/exo/compositor_frame_sink_holder.cc » ('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.h" 5 #include "components/exo/compositor_frame_sink.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/surfaces/surface.h" 8 #include "cc/surfaces/surface.h"
9 #include "cc/surfaces/surface_manager.h" 9 #include "cc/surfaces/surface_manager.h"
10 #include "components/exo/compositor_frame_sink_holder.h" 10 #include "components/exo/compositor_frame_sink_holder.h"
(...skipping 23 matching lines...) Expand all
34 void CompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { 34 void CompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) {
35 support_.SetNeedsBeginFrame(needs_begin_frame); 35 support_.SetNeedsBeginFrame(needs_begin_frame);
36 } 36 }
37 37
38 void CompositorFrameSink::SubmitCompositorFrame( 38 void CompositorFrameSink::SubmitCompositorFrame(
39 const cc::LocalSurfaceId& local_surface_id, 39 const cc::LocalSurfaceId& local_surface_id,
40 cc::CompositorFrame frame) { 40 cc::CompositorFrame frame) {
41 support_.SubmitCompositorFrame(local_surface_id, std::move(frame)); 41 support_.SubmitCompositorFrame(local_surface_id, std::move(frame));
42 } 42 }
43 43
44 void CompositorFrameSink::BeginFrameDidNotSwap(
45 const cc::BeginFrameAck& begin_frame_ack) {
46 support_.BeginFrameDidNotSwap(begin_frame_ack);
47 }
48
44 void CompositorFrameSink::EvictFrame() { 49 void CompositorFrameSink::EvictFrame() {
45 support_.EvictFrame(); 50 support_.EvictFrame();
46 } 51 }
47 52
48 //////////////////////////////////////////////////////////////////////////////// 53 ////////////////////////////////////////////////////////////////////////////////
49 // cc::CompositorFrameSinkSupportClient overrides: 54 // cc::CompositorFrameSinkSupportClient overrides:
50 55
51 void CompositorFrameSink::DidReceiveCompositorFrameAck() { 56 void CompositorFrameSink::DidReceiveCompositorFrameAck() {
52 client_->DidReceiveCompositorFrameAck(); 57 client_->DidReceiveCompositorFrameAck();
53 } 58 }
54 59
55 void CompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) { 60 void CompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) {
56 client_->OnBeginFrame(args); 61 client_->OnBeginFrame(args);
57 } 62 }
58 63
59 void CompositorFrameSink::ReclaimResources( 64 void CompositorFrameSink::ReclaimResources(
60 const cc::ReturnedResourceArray& resources) { 65 const cc::ReturnedResourceArray& resources) {
61 client_->ReclaimResources(resources); 66 client_->ReclaimResources(resources);
62 } 67 }
63 68
64 void CompositorFrameSink::WillDrawSurface( 69 void CompositorFrameSink::WillDrawSurface(
65 const cc::LocalSurfaceId& local_surface_id, 70 const cc::LocalSurfaceId& local_surface_id,
66 const gfx::Rect& damage_rect) { 71 const gfx::Rect& damage_rect) {
67 client_->WillDrawSurface(local_surface_id, damage_rect); 72 client_->WillDrawSurface(local_surface_id, damage_rect);
68 } 73 }
69 74
70 } // namespace exo 75 } // namespace exo
OLDNEW
« no previous file with comments | « components/exo/compositor_frame_sink.h ('k') | components/exo/compositor_frame_sink_holder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698