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

Unified Diff: content/renderer/android/synchronous_compositor_frame_sink.h

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/android/synchronous_compositor_frame_sink.h
diff --git a/content/renderer/android/synchronous_compositor_frame_sink.h b/content/renderer/android/synchronous_compositor_frame_sink.h
index 4e4f2d8706250415a0af5e842d187ef645b049aa..4446fa0dfde44e6cd6e4bbe64b9301f843a6932d 100644
--- a/content/renderer/android/synchronous_compositor_frame_sink.h
+++ b/content/renderer/android/synchronous_compositor_frame_sink.h
@@ -49,8 +49,8 @@ class SynchronousCompositorFrameSinkClient {
public:
virtual void DidActivatePendingTree() = 0;
virtual void Invalidate() = 0;
- virtual void SwapBuffers(uint32_t compositor_frame_sink_id,
- cc::CompositorFrame frame) = 0;
+ virtual void SubmitCompositorFrame(uint32_t compositor_frame_sink_id,
+ cc::CompositorFrame frame) = 0;
protected:
virtual ~SynchronousCompositorFrameSinkClient() {}
@@ -84,7 +84,7 @@ class SynchronousCompositorFrameSink
// cc::CompositorFrameSink implementation.
bool BindToClient(cc::CompositorFrameSinkClient* sink_client) override;
void DetachFromClient() override;
- void SwapBuffers(cc::CompositorFrame frame) override;
+ void SubmitCompositorFrame(cc::CompositorFrame frame) override;
void Invalidate() override;
// Partial SynchronousCompositor API implementation.
@@ -128,7 +128,7 @@ class SynchronousCompositorFrameSink
cc::ManagedMemoryPolicy memory_policy_;
bool in_software_draw_ = false;
- bool did_swap_ = false;
+ bool did_submit_frame_ = false;
scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
base::CancelableClosure fallback_tick_;

Powered by Google App Engine
This is Rietveld 408576698