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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 gfx::Size size; | 56 gfx::Size size; |
57 uint32 sync_point; | 57 uint32 sync_point; |
58 }; | 58 }; |
59 | 59 |
60 void ConsumeTexture(const TransferableFrame& frame); | 60 void ConsumeTexture(const TransferableFrame& frame); |
61 | 61 |
62 TransferableFrame current_backing_; | 62 TransferableFrame current_backing_; |
63 std::deque<TransferableFrame> pending_textures_; | 63 std::deque<TransferableFrame> pending_textures_; |
64 std::queue<TransferableFrame> returned_textures_; | 64 std::queue<TransferableFrame> returned_textures_; |
65 | 65 |
66 gfx::Size size_; | |
67 uint32 fbo_; | 66 uint32 fbo_; |
68 bool is_backbuffer_discarded_; | 67 bool is_backbuffer_discarded_; |
69 }; | 68 }; |
70 | 69 |
71 } // namespace content | 70 } // namespace content |
72 | 71 |
73 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ | 72 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ |
OLD | NEW |