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

Side by Side Diff: ui/aura/local/compositor_frame_sink_local.h

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: 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 #ifndef UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_ 5 #ifndef UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_
6 #define UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_ 6 #define UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "cc/output/compositor_frame_sink.h" 10 #include "cc/output/compositor_frame_sink.h"
(...skipping 25 matching lines...) Expand all
36 36
37 using SurfaceChangedCallback = 37 using SurfaceChangedCallback =
38 base::Callback<void(const cc::SurfaceId&, const gfx::Size&)>; 38 base::Callback<void(const cc::SurfaceId&, const gfx::Size&)>;
39 // Set a callback which will be called when the surface is changed. 39 // Set a callback which will be called when the surface is changed.
40 void SetSurfaceChangedCallback(const SurfaceChangedCallback& callback); 40 void SetSurfaceChangedCallback(const SurfaceChangedCallback& callback);
41 41
42 // cc::CompositorFrameSink: 42 // cc::CompositorFrameSink:
43 bool BindToClient(cc::CompositorFrameSinkClient* client) override; 43 bool BindToClient(cc::CompositorFrameSinkClient* client) override;
44 void DetachFromClient() override; 44 void DetachFromClient() override;
45 void SubmitCompositorFrame(cc::CompositorFrame frame) override; 45 void SubmitCompositorFrame(cc::CompositorFrame frame) override;
46 void BeginFrameDidNotProduceFrame(const cc::BeginFrameAck& ack) override;
46 47
47 // cc::CompositorFrameSinkSupportClient: 48 // cc::CompositorFrameSinkSupportClient:
48 void DidReceiveCompositorFrameAck( 49 void DidReceiveCompositorFrameAck(
49 const cc::ReturnedResourceArray& resources) override; 50 const cc::ReturnedResourceArray& resources) override;
50 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 51 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
51 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 52 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
52 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, 53 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
53 const gfx::Rect& damage_rect) override {} 54 const gfx::Rect& damage_rect) override {}
54 55
55 // cc::ExternalBeginFrameSourceClient: 56 // cc::ExternalBeginFrameSourceClient:
(...skipping 10 matching lines...) Expand all
66 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; 67 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_;
67 std::unique_ptr<base::ThreadChecker> thread_checker_; 68 std::unique_ptr<base::ThreadChecker> thread_checker_;
68 SurfaceChangedCallback surface_changed_callback_; 69 SurfaceChangedCallback surface_changed_callback_;
69 70
70 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkLocal); 71 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkLocal);
71 }; 72 };
72 73
73 } // namespace aura 74 } // namespace aura
74 75
75 #endif // UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_ 76 #endif // UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698