| 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 { |
| 11 class WaitableEvent; | 11 class WaitableEvent; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace video_test_util { | 14 namespace content { |
| 15 | 15 |
| 16 // Creates and draws textures used by the video decoder. | 16 // Creates and draws textures used by the video decoder. |
| 17 // This class is not thread safe and thus all the methods of this class | 17 // This class is not thread safe and thus all the methods of this class |
| 18 // (except for ctor/dtor) ensure they're being run on a single thread. | 18 // (except for ctor/dtor) ensure they're being run on a single thread. |
| 19 class RenderingHelper { | 19 class RenderingHelper { |
| 20 public: | 20 public: |
| 21 // Create a platform specifc implementation this object. | 21 // Create a platform specifc implementation this object. |
| 22 static RenderingHelper* Create(); | 22 static RenderingHelper* Create(); |
| 23 | 23 |
| 24 // Platform specific setup. | 24 // Platform specific setup. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 50 // Delete |texture_id|. | 50 // Delete |texture_id|. |
| 51 virtual void DeleteTexture(uint32 texture_id) = 0; | 51 virtual void DeleteTexture(uint32 texture_id) = 0; |
| 52 | 52 |
| 53 // Get the platform specific handle to the OpenGL context. | 53 // Get the platform specific handle to the OpenGL context. |
| 54 virtual void* GetGLContext() = 0; | 54 virtual void* GetGLContext() = 0; |
| 55 | 55 |
| 56 // Get the platform specific handle to the OpenGL display. | 56 // Get the platform specific handle to the OpenGL display. |
| 57 virtual void* GetGLDisplay() = 0; | 57 virtual void* GetGLDisplay() = 0; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace video_test_util | 60 } // namespace content |
| 61 | 61 |
| 62 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ | 62 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ |
| OLD | NEW |