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 "cc/resources/resource_format.h" | 10 #include "cc/resources/resource_format.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 int32 routing_id, | 28 int32 routing_id, |
29 uint32 output_surface_id, | 29 uint32 output_surface_id, |
30 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, | 30 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, |
31 scoped_ptr<cc::SoftwareOutputDevice> software_device, | 31 scoped_ptr<cc::SoftwareOutputDevice> software_device, |
32 cc::ResourceFormat format); | 32 cc::ResourceFormat format); |
33 virtual ~MailboxOutputSurface(); | 33 virtual ~MailboxOutputSurface(); |
34 | 34 |
35 // cc::OutputSurface implementation. | 35 // cc::OutputSurface implementation. |
36 virtual void EnsureBackbuffer() OVERRIDE; | 36 virtual void EnsureBackbuffer() OVERRIDE; |
37 virtual void DiscardBackbuffer() OVERRIDE; | 37 virtual void DiscardBackbuffer() OVERRIDE; |
38 virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE; | 38 virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE; |
39 virtual void BindFramebuffer() OVERRIDE; | 39 virtual void BindFramebuffer() OVERRIDE; |
40 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; | 40 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; |
41 | 41 |
42 private: | 42 private: |
43 // CompositorOutputSurface overrides. | 43 // CompositorOutputSurface overrides. |
44 virtual void OnSwapAck(uint32 output_surface_id, | 44 virtual void OnSwapAck(uint32 output_surface_id, |
45 const cc::CompositorFrameAck& ack) OVERRIDE; | 45 const cc::CompositorFrameAck& ack) OVERRIDE; |
46 | 46 |
47 size_t GetNumAcksPending(); | 47 size_t GetNumAcksPending(); |
48 | 48 |
(...skipping 16 matching lines...) Expand all Loading... |
65 std::queue<TransferableFrame> returned_textures_; | 65 std::queue<TransferableFrame> returned_textures_; |
66 | 66 |
67 uint32 fbo_; | 67 uint32 fbo_; |
68 bool is_backbuffer_discarded_; | 68 bool is_backbuffer_discarded_; |
69 cc::ResourceFormat format_; | 69 cc::ResourceFormat format_; |
70 }; | 70 }; |
71 | 71 |
72 } // namespace content | 72 } // namespace content |
73 | 73 |
74 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ | 74 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ |
OLD | NEW |