Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: content/common/gpu/media/rendering_helper.h

Issue 57663002: Add VDA decode time test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address owenlin's comments Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/rendering_helper.cc » ('j') | content/common/gpu/media/rendering_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698