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_MAILBOX_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ |
6 #define CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ | 6 #define CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 uint32 output_surface_id, | 31 uint32 output_surface_id, |
32 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, | 32 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, |
33 const scoped_refptr<ContextProviderCommandBuffer>& | 33 const scoped_refptr<ContextProviderCommandBuffer>& |
34 worker_context_provider, | 34 worker_context_provider, |
35 scoped_ptr<cc::SoftwareOutputDevice> software_device, | 35 scoped_ptr<cc::SoftwareOutputDevice> software_device, |
36 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue, | 36 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue, |
37 cc::ResourceFormat format); | 37 cc::ResourceFormat format); |
38 ~MailboxOutputSurface() override; | 38 ~MailboxOutputSurface() override; |
39 | 39 |
40 // cc::OutputSurface implementation. | 40 // cc::OutputSurface implementation. |
| 41 void DetachFromClient() override; |
41 void EnsureBackbuffer() override; | 42 void EnsureBackbuffer() override; |
42 void DiscardBackbuffer() override; | 43 void DiscardBackbuffer() override; |
43 void Reshape(const gfx::Size& size, float scale_factor) override; | 44 void Reshape(const gfx::Size& size, float scale_factor) override; |
44 void BindFramebuffer() override; | 45 void BindFramebuffer() override; |
45 void SwapBuffers(cc::CompositorFrame* frame) override; | 46 void SwapBuffers(cc::CompositorFrame* frame) override; |
46 | 47 |
47 private: | 48 private: |
48 // CompositorOutputSurface overrides. | 49 // CompositorOutputSurface overrides. |
49 void OnSwapAck(uint32 output_surface_id, | 50 void OnSwapAck(uint32 output_surface_id, |
50 const cc::CompositorFrameAck& ack) override; | 51 const cc::CompositorFrameAck& ack) override; |
(...skipping 19 matching lines...) Expand all Loading... |
70 std::queue<TransferableFrame> returned_textures_; | 71 std::queue<TransferableFrame> returned_textures_; |
71 | 72 |
72 uint32 fbo_; | 73 uint32 fbo_; |
73 bool is_backbuffer_discarded_; | 74 bool is_backbuffer_discarded_; |
74 cc::ResourceFormat format_; | 75 cc::ResourceFormat format_; |
75 }; | 76 }; |
76 | 77 |
77 } // namespace content | 78 } // namespace content |
78 | 79 |
79 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ | 80 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ |
OLD | NEW |