| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GPU_VIDEO_SERVICE_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_SERVICE_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_SERVICE_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Map of video and command buffer decoders, indexed by video decoder id. | 59 // Map of video and command buffer decoders, indexed by video decoder id. |
| 60 typedef std::map<int32, VideoDecoderInfo> DecoderMap; | 60 typedef std::map<int32, VideoDecoderInfo> DecoderMap; |
| 61 | 61 |
| 62 GpuVideoService(); | 62 GpuVideoService(); |
| 63 virtual ~GpuVideoService(); | 63 virtual ~GpuVideoService(); |
| 64 | 64 |
| 65 // Specialize video service on different platform will override. | 65 // Specialize video service on different platform will override. |
| 66 virtual bool IntializeGpuVideoService(); | 66 virtual bool IntializeGpuVideoService(); |
| 67 virtual bool UnintializeGpuVideoService(); | 67 virtual bool UnintializeGpuVideoService(); |
| 68 | 68 |
| 69 // Translates a given client texture id to the "real" texture id as recognized | |
| 70 // in the GPU process. | |
| 71 bool TranslateTextureForDecoder( | |
| 72 int32 decoder_id, uint32 client_texture_id, uint32* service_texture_id); | |
| 73 | |
| 74 DecoderMap decoder_map_; | 69 DecoderMap decoder_map_; |
| 75 | 70 |
| 76 friend struct DefaultSingletonTraits<GpuVideoService>; | 71 friend struct DefaultSingletonTraits<GpuVideoService>; |
| 77 DISALLOW_COPY_AND_ASSIGN(GpuVideoService); | 72 DISALLOW_COPY_AND_ASSIGN(GpuVideoService); |
| 78 }; | 73 }; |
| 79 | 74 |
| 80 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_SERVICE_H_ | 75 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_SERVICE_H_ |
| OLD | NEW |