OLD | NEW |
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_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 CompositorOutputSurface( | 50 CompositorOutputSurface( |
51 int32_t routing_id, | 51 int32_t routing_id, |
52 uint32_t output_surface_id, | 52 uint32_t output_surface_id, |
53 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, | 53 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, |
54 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); | 54 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); |
55 ~CompositorOutputSurface() override; | 55 ~CompositorOutputSurface() override; |
56 | 56 |
57 // cc::OutputSurface implementation. | 57 // cc::OutputSurface implementation. |
58 bool BindToClient(cc::OutputSurfaceClient* client) override; | 58 bool BindToClient(cc::OutputSurfaceClient* client) override; |
59 void DetachFromClient() override; | 59 void DetachFromClient() override; |
60 void SwapBuffers(cc::CompositorFrame* frame) override; | 60 void SwapBuffers(cc::CompositorFrame frame) override; |
61 void BindFramebuffer() override; | 61 void BindFramebuffer() override; |
62 uint32_t GetFramebufferCopyTextureFormat() override; | 62 uint32_t GetFramebufferCopyTextureFormat() override; |
63 | 63 |
64 protected: | 64 protected: |
65 uint32_t output_surface_id_; | 65 uint32_t output_surface_id_; |
66 | 66 |
67 private: | 67 private: |
68 class CompositorOutputSurfaceProxy : | 68 class CompositorOutputSurfaceProxy : |
69 public base::RefCountedThreadSafe<CompositorOutputSurfaceProxy> { | 69 public base::RefCountedThreadSafe<CompositorOutputSurfaceProxy> { |
70 public: | 70 public: |
(...skipping 26 matching lines...) Expand all Loading... |
97 CompositorForwardingMessageFilter::Handler output_surface_filter_handler_; | 97 CompositorForwardingMessageFilter::Handler output_surface_filter_handler_; |
98 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; | 98 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; |
99 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 99 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
100 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; | 100 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; |
101 int routing_id_; | 101 int routing_id_; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace content | 104 } // namespace content |
105 | 105 |
106 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 106 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
OLD | NEW |