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

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

Issue 825163004: Add Vaapi support on Ozone/Freon (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix comment in VaapiWrapper Created 5 years, 11 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
« no previous file with comments | « content/common/gpu/media/DEPS ('k') | content/common/gpu/media/rendering_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/cancelable_callback.h" 13 #include "base/cancelable_callback.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 #include "ui/gfx/geometry/size.h" 16 #include "ui/gfx/geometry/size.h"
17 #include "ui/gl/gl_bindings.h" 17 #include "ui/gl/gl_bindings.h"
18 #include "ui/gl/gl_context.h" 18 #include "ui/gl/gl_context.h"
19 #include "ui/gl/gl_surface.h" 19 #include "ui/gl/gl_surface.h"
20 20
21 namespace base { 21 namespace base {
22 class MessageLoop; 22 class MessageLoop;
23 class WaitableEvent; 23 class WaitableEvent;
24 } 24 }
25 25
26 namespace ui {
27 class DisplayConfigurator;
28 }
29
26 namespace content { 30 namespace content {
27 31
28 class VideoFrameTexture : public base::RefCounted<VideoFrameTexture> { 32 class VideoFrameTexture : public base::RefCounted<VideoFrameTexture> {
29 public: 33 public:
30 uint32 texture_id() const { return texture_id_; } 34 uint32 texture_id() const { return texture_id_; }
31 uint32 texture_target() const { return texture_target_; } 35 uint32 texture_target() const { return texture_target_; }
32 36
33 VideoFrameTexture(uint32 texture_target, 37 VideoFrameTexture(uint32 texture_target,
34 uint32 texture_id, 38 uint32 texture_id,
35 const base::Closure& no_longer_needed_cb); 39 const base::Closure& no_longer_needed_cb);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 169
166 // Render |texture_id| to the current view port of the screen using target 170 // Render |texture_id| to the current view port of the screen using target
167 // |texture_target|. 171 // |texture_target|.
168 void RenderTexture(uint32 texture_target, uint32 texture_id); 172 void RenderTexture(uint32 texture_target, uint32 texture_id);
169 173
170 base::MessageLoop* message_loop_; 174 base::MessageLoop* message_loop_;
171 175
172 scoped_refptr<gfx::GLContext> gl_context_; 176 scoped_refptr<gfx::GLContext> gl_context_;
173 scoped_refptr<gfx::GLSurface> gl_surface_; 177 scoped_refptr<gfx::GLSurface> gl_surface_;
174 178
179 #if defined(USE_OZONE)
180 class StubOzoneDelegate;
181 scoped_ptr<StubOzoneDelegate> platform_window_delegate_;
182
183 #if defined(OS_CHROMEOS)
184 scoped_ptr<ui::DisplayConfigurator> display_configurator_;
185 #endif
186 #endif
187
175 gfx::AcceleratedWidget window_; 188 gfx::AcceleratedWidget window_;
176 189
177 gfx::Size screen_size_; 190 gfx::Size screen_size_;
178 191
179 std::vector<RenderedVideo> videos_; 192 std::vector<RenderedVideo> videos_;
180 193
181 bool render_as_thumbnails_; 194 bool render_as_thumbnails_;
182 int frame_count_; 195 int frame_count_;
183 GLuint thumbnails_fbo_id_; 196 GLuint thumbnails_fbo_id_;
184 GLuint thumbnails_texture_id_; 197 GLuint thumbnails_texture_id_;
185 gfx::Size thumbnails_fbo_size_; 198 gfx::Size thumbnails_fbo_size_;
186 gfx::Size thumbnail_size_; 199 gfx::Size thumbnail_size_;
187 GLuint program_; 200 GLuint program_;
188 base::TimeDelta frame_duration_; 201 base::TimeDelta frame_duration_;
189 base::TimeTicks scheduled_render_time_; 202 base::TimeTicks scheduled_render_time_;
190 base::CancelableClosure render_task_; 203 base::CancelableClosure render_task_;
191 base::TimeTicks vsync_timebase_; 204 base::TimeTicks vsync_timebase_;
192 base::TimeDelta vsync_interval_; 205 base::TimeDelta vsync_interval_;
193 206
194 DISALLOW_COPY_AND_ASSIGN(RenderingHelper); 207 DISALLOW_COPY_AND_ASSIGN(RenderingHelper);
195 }; 208 };
196 209
197 } // namespace content 210 } // namespace content
198 211
199 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ 212 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/DEPS ('k') | content/common/gpu/media/rendering_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698