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

Side by Side Diff: content/renderer/gpu/renderer_compositor_frame_sink.h

Issue 2349743004: cc: Remove things from OutputSurface and CompositorFrameSink. (Closed)
Patch Set: delete-stuff-cfs: . Created 4 years, 3 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SwapBuffers(cc::CompositorFrame frame) override;
65 void BindFramebuffer() override;
66 uint32_t GetFramebufferCopyTextureFormat() override;
67 65
68 protected: 66 protected:
69 uint32_t compositor_frame_sink_id_; 67 uint32_t compositor_frame_sink_id_;
70 68
71 private: 69 private:
72 class RendererCompositorFrameSinkProxy 70 class RendererCompositorFrameSinkProxy
73 : public base::RefCountedThreadSafe<RendererCompositorFrameSinkProxy> { 71 : public base::RefCountedThreadSafe<RendererCompositorFrameSinkProxy> {
74 public: 72 public:
75 explicit RendererCompositorFrameSinkProxy( 73 explicit RendererCompositorFrameSinkProxy(
76 RendererCompositorFrameSink* compositor_frame_sink) 74 RendererCompositorFrameSink* compositor_frame_sink)
(...skipping 25 matching lines...) Expand all
102 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_; 100 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_;
103 scoped_refptr<IPC::SyncMessageFilter> message_sender_; 101 scoped_refptr<IPC::SyncMessageFilter> message_sender_;
104 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; 102 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
105 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; 103 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
106 int routing_id_; 104 int routing_id_;
107 }; 105 };
108 106
109 } // namespace content 107 } // namespace content
110 108
111 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ 109 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698