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 <queue> | 9 #include <queue> |
10 #include <vector> | 10 #include <vector> |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 #if defined(USE_OZONE) | 191 #if defined(USE_OZONE) |
192 class StubOzoneDelegate; | 192 class StubOzoneDelegate; |
193 scoped_ptr<StubOzoneDelegate> platform_window_delegate_; | 193 scoped_ptr<StubOzoneDelegate> platform_window_delegate_; |
194 | 194 |
195 #if defined(OS_CHROMEOS) | 195 #if defined(OS_CHROMEOS) |
196 scoped_ptr<ui::DisplayConfigurator> display_configurator_; | 196 scoped_ptr<ui::DisplayConfigurator> display_configurator_; |
197 #endif | 197 #endif |
198 #endif | 198 #endif |
199 | 199 |
| 200 bool ignore_vsync_; |
| 201 |
200 gfx::AcceleratedWidget window_; | 202 gfx::AcceleratedWidget window_; |
201 | 203 |
202 gfx::Size screen_size_; | 204 gfx::Size screen_size_; |
203 | 205 |
204 std::vector<RenderedVideo> videos_; | 206 std::vector<RenderedVideo> videos_; |
205 | 207 |
206 bool render_as_thumbnails_; | 208 bool render_as_thumbnails_; |
207 int frame_count_; | 209 int frame_count_; |
208 GLuint thumbnails_fbo_id_; | 210 GLuint thumbnails_fbo_id_; |
209 GLuint thumbnails_texture_id_; | 211 GLuint thumbnails_texture_id_; |
210 gfx::Size thumbnails_fbo_size_; | 212 gfx::Size thumbnails_fbo_size_; |
211 gfx::Size thumbnail_size_; | 213 gfx::Size thumbnail_size_; |
212 GLuint program_; | 214 GLuint program_; |
213 base::TimeDelta frame_duration_; | 215 base::TimeDelta frame_duration_; |
214 base::TimeTicks scheduled_render_time_; | 216 base::TimeTicks scheduled_render_time_; |
215 base::CancelableClosure render_task_; | 217 base::CancelableClosure render_task_; |
216 base::TimeTicks vsync_timebase_; | 218 base::TimeTicks vsync_timebase_; |
217 base::TimeDelta vsync_interval_; | 219 base::TimeDelta vsync_interval_; |
218 | 220 |
219 DISALLOW_COPY_AND_ASSIGN(RenderingHelper); | 221 DISALLOW_COPY_AND_ASSIGN(RenderingHelper); |
220 }; | 222 }; |
221 | 223 |
222 } // namespace content | 224 } // namespace content |
223 | 225 |
224 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ | 226 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ |
OLD | NEW |