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_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #define GL_VARIANT_EGL 1 | 24 #define GL_VARIANT_EGL 1 |
25 typedef EGLContext NativeContextType; | 25 typedef EGLContext NativeContextType; |
26 #endif | 26 #endif |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 | 29 |
30 struct RenderingHelperParams { | 30 struct RenderingHelperParams { |
31 RenderingHelperParams(); | 31 RenderingHelperParams(); |
32 ~RenderingHelperParams(); | 32 ~RenderingHelperParams(); |
33 | 33 |
34 bool suppress_swap_to_display; | |
35 int num_windows; | 34 int num_windows; |
36 // Dimensions of window(s) created for displaying frames. In the | 35 // Dimensions of window(s) created for displaying frames. In the |
37 // case of thumbnail rendering, these won't match the frame dimensions. | 36 // case of thumbnail rendering, these won't match the frame dimensions. |
38 std::vector<gfx::Size> window_dimensions; | 37 std::vector<gfx::Size> window_dimensions; |
39 // Dimensions of video frame texture(s). | 38 // Dimensions of video frame texture(s). |
40 std::vector<gfx::Size> frame_dimensions; | 39 std::vector<gfx::Size> frame_dimensions; |
41 // Whether the frames are rendered as scaled thumbnails within a | 40 // Whether the frames are rendered as scaled thumbnails within a |
42 // larger FBO that is in turn rendered to the window. | 41 // larger FBO that is in turn rendered to the window. |
43 bool render_as_thumbnails; | 42 bool render_as_thumbnails; |
44 // The size of the FBO containing all visible thumbnails. | 43 // The size of the FBO containing all visible thumbnails. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 gfx::Size thumbnails_fbo_size_; | 121 gfx::Size thumbnails_fbo_size_; |
123 gfx::Size thumbnail_size_; | 122 gfx::Size thumbnail_size_; |
124 GLuint program_; | 123 GLuint program_; |
125 | 124 |
126 DISALLOW_COPY_AND_ASSIGN(RenderingHelper); | 125 DISALLOW_COPY_AND_ASSIGN(RenderingHelper); |
127 }; | 126 }; |
128 | 127 |
129 } // namespace content | 128 } // namespace content |
130 | 129 |
131 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ | 130 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ |
OLD | NEW |