| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // Undo the effects of Initialize() and signal |*done|. | 62 // Undo the effects of Initialize() and signal |*done|. |
| 63 void UnInitialize(base::WaitableEvent* done); | 63 void UnInitialize(base::WaitableEvent* done); |
| 64 | 64 |
| 65 // Return a newly-created GLES2 texture id rendering to a specific window, and | 65 // Return a newly-created GLES2 texture id rendering to a specific window, and |
| 66 // signal |*done|. | 66 // signal |*done|. |
| 67 void CreateTexture(int window_id, | 67 void CreateTexture(int window_id, |
| 68 uint32 texture_target, | 68 uint32 texture_target, |
| 69 uint32* texture_id, | 69 uint32* texture_id, |
| 70 base::WaitableEvent* done); | 70 base::WaitableEvent* done); |
| 71 | 71 |
| 72 // Render |texture_id| to the screen using target |texture_target|. | 72 // Render |texture_id| to the screen. |
| 73 void RenderTexture(uint32 texture_target, uint32 texture_id); | 73 void RenderTexture(uint32 texture_id); |
| 74 | 74 |
| 75 // Delete |texture_id|. | 75 // Delete |texture_id|. |
| 76 void DeleteTexture(uint32 texture_id); | 76 void DeleteTexture(uint32 texture_id); |
| 77 | 77 |
| 78 // Get the platform specific handle to the OpenGL context. | 78 // Get the platform specific handle to the OpenGL context. |
| 79 void* GetGLContext(); | 79 void* GetGLContext(); |
| 80 | 80 |
| 81 // Get the platform specific handle to the OpenGL display. | 81 // Get the platform specific handle to the OpenGL display. |
| 82 void* GetGLDisplay(); | 82 void* GetGLDisplay(); |
| 83 | 83 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 gfx::Size thumbnails_fbo_size_; | 122 gfx::Size thumbnails_fbo_size_; |
| 123 gfx::Size thumbnail_size_; | 123 gfx::Size thumbnail_size_; |
| 124 GLuint program_; | 124 GLuint program_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(RenderingHelper); | 126 DISALLOW_COPY_AND_ASSIGN(RenderingHelper); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace content | 129 } // namespace content |
| 130 | 130 |
| 131 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ | 131 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ |
| OLD | NEW |