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

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

Issue 10388108: Implement media::VideoDecodeAccelerator on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
6 #define CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
7
8 #include "base/basictypes.h"
9
10 namespace base {
11 class WaitableEvent;
12 }
13 class MessageLoop;
14
15 namespace video_test_util {
16
17 // Creates and draws textures used by the video decoder.
Ami GONE FROM CHROMIUM 2012/05/15 17:55:22 Doco thread unsafety? Or is the mac impl more fle
sail 2012/05/15 23:53:31 Done.
18 class RenderingHelper {
19 public:
20 // Create a platform specifc implementation this object.
21 static RenderingHelper* Create();
22
23 // Platform specific setup.
24 static void InitializePlatform();
25
26 RenderingHelper() {}
27 virtual ~RenderingHelper() {}
28
29 // Create the window and render context.
30 virtual void Initialize(bool suppress_swap_to_display,
31 int num_windows,
32 int width,
33 int height,
34 base::WaitableEvent* done) = 0;
35
36 // Undo the effects of Initialize() and signal |*done|.
37 virtual void UnInitialize(base::WaitableEvent* done) = 0;
38
39 // Return a newly-created GLES2 texture id rendering to a specific window, and
40 // signal |*done|.
41 virtual void CreateTexture(int window_id,
42 uint32* texture_id,
43 base::WaitableEvent* done) = 0;
44
45 // Render |texture_id| to the screen (unless |suppress_swap_to_display_|).
46 virtual void RenderTexture(uint32 texture_id) = 0;
47
48 // Delete |texture_id|.
49 virtual void DeleteTexture(uint32 texture_id) = 0;
50
51 // Get the platform specific handle to the OpenGL context.
52 virtual void* GetGLContext() = 0;
53
54 // Get the platform specific handle to the OpenGL display.
55 virtual void* GetGLDisplay() = 0;
56
57 // Returns the message loop that this object was initialized on.
58 virtual MessageLoop* GetMessageLoop() = 0;
Robert Sesek 2012/05/15 16:04:49 Proxy?
Ami GONE FROM CHROMIUM 2012/05/15 17:55:22 Unused?
sail 2012/05/15 23:53:31 Done. Yea, it turns out that this wasn't needed. R
59 };
60
61
Robert Sesek 2012/05/15 16:04:49 nit: two extra blank lines
sail 2012/05/15 23:53:31 Done.
62
63 } // namespace video_test_util
64
65 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698