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

Side by Side Diff: content/renderer/android/synchronous_compositor_frame_sink.h

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: remove ExternalBFS::OnDidFinishFrame and related ack tracking. 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue); 79 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue);
80 ~SynchronousCompositorFrameSink() override; 80 ~SynchronousCompositorFrameSink() override;
81 81
82 void SetSyncClient(SynchronousCompositorFrameSinkClient* compositor); 82 void SetSyncClient(SynchronousCompositorFrameSinkClient* compositor);
83 bool OnMessageReceived(const IPC::Message& message); 83 bool OnMessageReceived(const IPC::Message& message);
84 84
85 // cc::CompositorFrameSink implementation. 85 // cc::CompositorFrameSink implementation.
86 bool BindToClient(cc::CompositorFrameSinkClient* sink_client) override; 86 bool BindToClient(cc::CompositorFrameSinkClient* sink_client) override;
87 void DetachFromClient() override; 87 void DetachFromClient() override;
88 void SubmitCompositorFrame(cc::CompositorFrame frame) override; 88 void SubmitCompositorFrame(cc::CompositorFrame frame) override;
89 void BeginFrameDidNotProduceFrame(const cc::BeginFrameAck& ack) override;
89 void Invalidate() override; 90 void Invalidate() override;
90 91
91 // Partial SynchronousCompositor API implementation. 92 // Partial SynchronousCompositor API implementation.
92 void DemandDrawHw(const gfx::Size& viewport_size, 93 void DemandDrawHw(const gfx::Size& viewport_size,
93 const gfx::Rect& viewport_rect_for_tile_priority, 94 const gfx::Rect& viewport_rect_for_tile_priority,
94 const gfx::Transform& transform_for_tile_priority); 95 const gfx::Transform& transform_for_tile_priority);
95 void DemandDrawSw(SkCanvas* canvas); 96 void DemandDrawSw(SkCanvas* canvas);
96 97
97 // CompositorFrameSinkSupportClient implementation. 98 // CompositorFrameSinkSupportClient implementation.
98 void DidReceiveCompositorFrameAck( 99 void DidReceiveCompositorFrameAck(
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 gfx::Rect sw_viewport_for_current_draw_; 170 gfx::Rect sw_viewport_for_current_draw_;
170 171
171 base::ThreadChecker thread_checker_; 172 base::ThreadChecker thread_checker_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink); 174 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink);
174 }; 175 };
175 176
176 } // namespace content 177 } // namespace content
177 178
178 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ 179 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698