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/transferable_resource.h" | 10 #include "cc/resources/transferable_resource.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 public: | 25 public: |
26 MailboxOutputSurface(int32 routing_id, | 26 MailboxOutputSurface(int32 routing_id, |
27 WebGraphicsContext3DCommandBufferImpl* context3d, | 27 WebGraphicsContext3DCommandBufferImpl* context3d, |
28 cc::SoftwareOutputDevice* software); | 28 cc::SoftwareOutputDevice* software); |
29 virtual ~MailboxOutputSurface(); | 29 virtual ~MailboxOutputSurface(); |
30 | 30 |
31 // cc::OutputSurface implementation. | 31 // cc::OutputSurface implementation. |
32 virtual void SendFrameToParentCompositor(cc::CompositorFrame* frame) OVERRIDE; | 32 virtual void SendFrameToParentCompositor(cc::CompositorFrame* frame) OVERRIDE; |
33 virtual void EnsureBackbuffer() OVERRIDE; | 33 virtual void EnsureBackbuffer() OVERRIDE; |
34 virtual void DiscardBackbuffer() OVERRIDE; | 34 virtual void DiscardBackbuffer() OVERRIDE; |
35 virtual void Reshape(gfx::Size size) OVERRIDE; | 35 virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE; |
36 virtual void BindFramebuffer() OVERRIDE; | 36 virtual void BindFramebuffer() OVERRIDE; |
37 virtual void PostSubBuffer(gfx::Rect rect, const cc::LatencyInfo&) OVERRIDE; | 37 virtual void PostSubBuffer(gfx::Rect rect, const cc::LatencyInfo&) OVERRIDE; |
38 virtual void SwapBuffers(const cc::LatencyInfo&) OVERRIDE; | 38 virtual void SwapBuffers(const cc::LatencyInfo&) OVERRIDE; |
39 | 39 |
40 private: | 40 private: |
41 // CompositorOutputSurface overrides. | 41 // CompositorOutputSurface overrides. |
42 virtual void OnSwapAck(const cc::CompositorFrameAck& ack) OVERRIDE; | 42 virtual void OnSwapAck(const cc::CompositorFrameAck& ack) OVERRIDE; |
43 | 43 |
44 size_t GetNumAcksPending(); | 44 size_t GetNumAcksPending(); |
45 | 45 |
(...skipping 18 matching lines...) Expand all Loading... |
64 std::queue<TransferableFrame> returned_textures_; | 64 std::queue<TransferableFrame> returned_textures_; |
65 | 65 |
66 gfx::Size size_; | 66 gfx::Size size_; |
67 uint32 fbo_; | 67 uint32 fbo_; |
68 bool is_backbuffer_discarded_; | 68 bool is_backbuffer_discarded_; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
72 | 72 |
73 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ | 73 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ |
OLD | NEW |