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

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

Issue 490233002: VaapiVideoAccelerator: make Vaapi accelerator work with ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test field Created 6 years, 3 months 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
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 <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Flushes the pending frames. Notify the rendering_helper there won't be 103 // Flushes the pending frames. Notify the rendering_helper there won't be
104 // more video frames. 104 // more video frames.
105 void Flush(size_t window_id); 105 void Flush(size_t window_id);
106 106
107 // Delete |texture_id|. 107 // Delete |texture_id|.
108 void DeleteTexture(uint32 texture_id); 108 void DeleteTexture(uint32 texture_id);
109 109
110 // Get the platform specific handle to the OpenGL display. 110 // Get the platform specific handle to the OpenGL display.
111 void* GetGLDisplay(); 111 void* GetGLDisplay();
112 112
113 // Get the GL context.
114 gfx::GLContext* GetGLContext();
115
113 // Get the platform specific handle to the OpenGL context. 116 // Get the platform specific handle to the OpenGL context.
114 void* GetGLContext(); 117 void* GetGLContextHandle();
115 118
116 // Get rendered thumbnails as RGB. 119 // Get rendered thumbnails as RGB.
117 // Sets alpha_solid to true if the alpha channel is entirely 0xff. 120 // Sets alpha_solid to true if the alpha channel is entirely 0xff.
118 void GetThumbnailsAsRGB(std::vector<unsigned char>* rgb, 121 void GetThumbnailsAsRGB(std::vector<unsigned char>* rgb,
119 bool* alpha_solid, 122 bool* alpha_solid,
120 base::WaitableEvent* done); 123 base::WaitableEvent* done);
121 124
122 private: 125 private:
123 struct RenderedVideo { 126 struct RenderedVideo {
124 // The rect on the screen where the video will be rendered. 127 // The rect on the screen where the video will be rendered.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 gfx::Size thumbnail_size_; 175 gfx::Size thumbnail_size_;
173 GLuint program_; 176 GLuint program_;
174 base::TimeDelta frame_duration_; 177 base::TimeDelta frame_duration_;
175 178
176 DISALLOW_COPY_AND_ASSIGN(RenderingHelper); 179 DISALLOW_COPY_AND_ASSIGN(RenderingHelper);
177 }; 180 };
178 181
179 } // namespace content 182 } // namespace content
180 183
181 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ 184 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698