| 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_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 // Sets the texture to cleared. | 102 // Sets the texture to cleared. |
| 103 void SetTextureCleared(const media::Picture& picture); | 103 void SetTextureCleared(const media::Picture& picture); |
| 104 | 104 |
| 105 // Helper for replying to the creation request. | 105 // Helper for replying to the creation request. |
| 106 void SendCreateDecoderReply(IPC::Message* message, bool succeeded); | 106 void SendCreateDecoderReply(IPC::Message* message, bool succeeded); |
| 107 | 107 |
| 108 // Helper to bind |image| to the texture specified by |client_texture_id|. | 108 // Helper to bind |image| to the texture specified by |client_texture_id|. |
| 109 void BindImage(uint32 client_texture_id, | 109 void BindImage(uint32 client_texture_id, |
| 110 uint32 texture_target, | 110 uint32 texture_target, |
| 111 scoped_refptr<gfx::GLImage> image); | 111 scoped_refptr<gl::GLImage> image); |
| 112 | 112 |
| 113 // Route ID to communicate with the host. | 113 // Route ID to communicate with the host. |
| 114 const int32 host_route_id_; | 114 const int32 host_route_id_; |
| 115 | 115 |
| 116 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is | 116 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is |
| 117 // registered as a DestuctionObserver of |stub_| and will self-delete when | 117 // registered as a DestuctionObserver of |stub_| and will self-delete when |
| 118 // |stub_| is destroyed. | 118 // |stub_| is destroyed. |
| 119 GpuCommandBufferStub* const stub_; | 119 GpuCommandBufferStub* const stub_; |
| 120 | 120 |
| 121 // The underlying VideoDecodeAccelerator. | 121 // The underlying VideoDecodeAccelerator. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 // A map from picture buffer ID to TextureRef that have not been cleared. | 155 // A map from picture buffer ID to TextureRef that have not been cleared. |
| 156 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; | 156 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; |
| 157 | 157 |
| 158 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 158 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace content | 161 } // namespace content |
| 162 | 162 |
| 163 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 163 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |