OLD | NEW |
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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
(...skipping 22 matching lines...) Expand all Loading... |
33 int width, | 33 int width, |
34 int height, | 34 int height, |
35 base::WaitableEvent* done) = 0; | 35 base::WaitableEvent* done) = 0; |
36 | 36 |
37 // Undo the effects of Initialize() and signal |*done|. | 37 // Undo the effects of Initialize() and signal |*done|. |
38 virtual void UnInitialize(base::WaitableEvent* done) = 0; | 38 virtual void UnInitialize(base::WaitableEvent* done) = 0; |
39 | 39 |
40 // Return a newly-created GLES2 texture id rendering to a specific window, and | 40 // Return a newly-created GLES2 texture id rendering to a specific window, and |
41 // signal |*done|. | 41 // signal |*done|. |
42 virtual void CreateTexture(int window_id, | 42 virtual void CreateTexture(int window_id, |
| 43 uint32 texture_target, |
43 uint32* texture_id, | 44 uint32* texture_id, |
44 base::WaitableEvent* done) = 0; | 45 base::WaitableEvent* done) = 0; |
45 | 46 |
46 // Render |texture_id| to the screen (unless |suppress_swap_to_display_|). | 47 // Render |texture_id| to the screen (unless |suppress_swap_to_display_|). |
47 virtual void RenderTexture(uint32 texture_id) = 0; | 48 virtual void RenderTexture(uint32 texture_id) = 0; |
48 | 49 |
49 // Delete |texture_id|. | 50 // Delete |texture_id|. |
50 virtual void DeleteTexture(uint32 texture_id) = 0; | 51 virtual void DeleteTexture(uint32 texture_id) = 0; |
51 | 52 |
52 // Get the platform specific handle to the OpenGL context. | 53 // Get the platform specific handle to the OpenGL context. |
53 virtual void* GetGLContext() = 0; | 54 virtual void* GetGLContext() = 0; |
54 | 55 |
55 // Get the platform specific handle to the OpenGL display. | 56 // Get the platform specific handle to the OpenGL display. |
56 virtual void* GetGLDisplay() = 0; | 57 virtual void* GetGLDisplay() = 0; |
57 }; | 58 }; |
58 | 59 |
59 } // namespace video_test_util | 60 } // namespace video_test_util |
60 | 61 |
61 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ | 62 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ |
OLD | NEW |