OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_ |
6 #define CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 AllocatedSurface GetNextSurface(); | 73 AllocatedSurface GetNextSurface(); |
74 | 74 |
75 gfx::Size size_; | 75 gfx::Size size_; |
76 scoped_refptr<cc::ContextProvider> context_provider_; | 76 scoped_refptr<cc::ContextProvider> context_provider_; |
77 unsigned int fbo_; | 77 unsigned int fbo_; |
78 size_t allocated_count_; | 78 size_t allocated_count_; |
79 unsigned int internalformat_; | 79 unsigned int internalformat_; |
80 AllocatedSurface current_surface_; // This surface is currently bound. | 80 AllocatedSurface current_surface_; // This surface is currently bound. |
81 std::vector<AllocatedSurface> available_surfaces_; // These are free for use. | 81 std::vector<AllocatedSurface> available_surfaces_; // These are free for use. |
82 std::deque<AllocatedSurface> in_flight_surfaces_; | 82 std::deque<AllocatedSurface> in_flight_surfaces_; |
| 83 std::deque<AllocatedSurface> display_queue_surfaces_; |
83 GLHelper* gl_helper_; | 84 GLHelper* gl_helper_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(BufferQueue); | 86 DISALLOW_COPY_AND_ASSIGN(BufferQueue); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace content | 89 } // namespace content |
89 | 90 |
90 #endif // CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_ | 91 #endif // CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_ |
OLD | NEW |