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

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

Issue 2407333002: Remove MessageLoop::current() from rendering_helper.cc. (Closed)
Patch Set: add missing include Created 4 years, 2 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 | « no previous file | media/gpu/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 MEDIA_GPU_RENDERING_HELPER_H_ 5 #ifndef MEDIA_GPU_RENDERING_HELPER_H_
6 #define MEDIA_GPU_RENDERING_HELPER_H_ 6 #define MEDIA_GPU_RENDERING_HELPER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <queue> 13 #include <queue>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/cancelable_callback.h" 16 #include "base/cancelable_callback.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ref_counted.h"
19 #include "base/single_thread_task_runner.h"
18 #include "base/time/time.h" 20 #include "base/time/time.h"
19 #include "build/build_config.h" 21 #include "build/build_config.h"
20 #include "ui/gfx/geometry/rect.h" 22 #include "ui/gfx/geometry/rect.h"
21 #include "ui/gfx/geometry/size.h" 23 #include "ui/gfx/geometry/size.h"
22 #include "ui/gl/gl_bindings.h" 24 #include "ui/gl/gl_bindings.h"
23 #include "ui/gl/gl_context.h" 25 #include "ui/gl/gl_context.h"
24 #include "ui/gl/gl_surface.h" 26 #include "ui/gl/gl_surface.h"
25 27
26 namespace base { 28 namespace base {
27 class MessageLoop;
28 class WaitableEvent; 29 class WaitableEvent;
29 } 30 }
30 31
31 namespace ui { 32 namespace ui {
32 class DisplayConfigurator; 33 class DisplayConfigurator;
33 } 34 }
34 35
35 namespace media { 36 namespace media {
36 37
37 class VideoFrameTexture : public base::RefCounted<VideoFrameTexture> { 38 class VideoFrameTexture : public base::RefCounted<VideoFrameTexture> {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const base::TimeTicks timebase, 180 const base::TimeTicks timebase,
180 const base::TimeDelta interval); 181 const base::TimeDelta interval);
181 182
182 void DropOneFrameForAllVideos(); 183 void DropOneFrameForAllVideos();
183 void ScheduleNextRenderContent(); 184 void ScheduleNextRenderContent();
184 185
185 // Render |texture_id| to the current view port of the screen using target 186 // Render |texture_id| to the current view port of the screen using target
186 // |texture_target|. 187 // |texture_target|.
187 void RenderTexture(uint32_t texture_target, uint32_t texture_id); 188 void RenderTexture(uint32_t texture_target, uint32_t texture_id);
188 189
189 base::MessageLoop* message_loop_; 190 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
190 191
191 scoped_refptr<gl::GLContext> gl_context_; 192 scoped_refptr<gl::GLContext> gl_context_;
192 scoped_refptr<gl::GLSurface> gl_surface_; 193 scoped_refptr<gl::GLSurface> gl_surface_;
193 194
194 #if defined(USE_OZONE) 195 #if defined(USE_OZONE)
195 class StubOzoneDelegate; 196 class StubOzoneDelegate;
196 std::unique_ptr<StubOzoneDelegate> platform_window_delegate_; 197 std::unique_ptr<StubOzoneDelegate> platform_window_delegate_;
197 198
198 #if defined(OS_CHROMEOS) 199 #if defined(OS_CHROMEOS)
199 std::unique_ptr<ui::DisplayConfigurator> display_configurator_; 200 std::unique_ptr<ui::DisplayConfigurator> display_configurator_;
(...skipping 20 matching lines...) Expand all
220 base::CancelableClosure render_task_; 221 base::CancelableClosure render_task_;
221 base::TimeTicks vsync_timebase_; 222 base::TimeTicks vsync_timebase_;
222 base::TimeDelta vsync_interval_; 223 base::TimeDelta vsync_interval_;
223 224
224 DISALLOW_COPY_AND_ASSIGN(RenderingHelper); 225 DISALLOW_COPY_AND_ASSIGN(RenderingHelper);
225 }; 226 };
226 227
227 } // namespace media 228 } // namespace media
228 229
229 #endif // MEDIA_GPU_RENDERING_HELPER_H_ 230 #endif // MEDIA_GPU_RENDERING_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/rendering_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698