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

Side by Side Diff: content/renderer/gpu/renderer_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_
6 #define CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ 6 #define CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int32_t routing_id, 54 int32_t routing_id,
55 uint32_t compositor_frame_sink_id, 55 uint32_t compositor_frame_sink_id,
56 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, 56 std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
57 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, 57 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider,
58 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); 58 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue);
59 ~RendererCompositorFrameSink() override; 59 ~RendererCompositorFrameSink() override;
60 60
61 // cc::CompositorFrameSink implementation. 61 // cc::CompositorFrameSink implementation.
62 bool BindToClient(cc::CompositorFrameSinkClient* client) override; 62 bool BindToClient(cc::CompositorFrameSinkClient* client) override;
63 void DetachFromClient() override; 63 void DetachFromClient() override;
64 void SwapBuffers(cc::CompositorFrame frame) override; 64 void SubmitCompositorFrame(cc::CompositorFrame frame) override;
65 65
66 protected: 66 protected:
67 uint32_t compositor_frame_sink_id_; 67 uint32_t compositor_frame_sink_id_;
68 68
69 private: 69 private:
70 class RendererCompositorFrameSinkProxy 70 class RendererCompositorFrameSinkProxy
71 : public base::RefCountedThreadSafe<RendererCompositorFrameSinkProxy> { 71 : public base::RefCountedThreadSafe<RendererCompositorFrameSinkProxy> {
72 public: 72 public:
73 explicit RendererCompositorFrameSinkProxy( 73 explicit RendererCompositorFrameSinkProxy(
74 RendererCompositorFrameSink* compositor_frame_sink) 74 RendererCompositorFrameSink* compositor_frame_sink)
(...skipping 25 matching lines...) Expand all
100 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_; 100 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_;
101 scoped_refptr<IPC::SyncMessageFilter> message_sender_; 101 scoped_refptr<IPC::SyncMessageFilter> message_sender_;
102 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; 102 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
103 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; 103 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
104 int routing_id_; 104 int routing_id_;
105 }; 105 };
106 106
107 } // namespace content 107 } // namespace content
108 108
109 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ 109 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/gpu/renderer_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698