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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 // Called on IO thread when |filter_| has been removed. | 118 // Called on IO thread when |filter_| has been removed. |
119 void OnFilterRemoved(); | 119 void OnFilterRemoved(); |
120 | 120 |
121 // Sets the texture to cleared. | 121 // Sets the texture to cleared. |
122 void SetTextureCleared(const media::Picture& picture); | 122 void SetTextureCleared(const media::Picture& picture); |
123 | 123 |
124 #if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_MACOSX) | 124 #if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_MACOSX) |
125 // Helper to bind |image| to the texture specified by |client_texture_id|. | 125 // Helper to bind |image| to the texture specified by |client_texture_id|. |
126 void BindImage(uint32_t client_texture_id, | 126 void BindImage(uint32_t client_texture_id, |
127 uint32_t texture_target, | 127 uint32_t texture_target, |
128 scoped_refptr<gl::GLImage> image); | 128 scoped_refptr<gl::GLImage> image, |
129 bool image_is_bound); | |
sandersd (OOO until July 31)
2016/03/22 21:32:28
This is going to need a better name, and a comment
ccameron
2016/03/22 22:00:04
Done. I'd have liked to pass the gpu::gles2::Textu
| |
129 #endif | 130 #endif |
130 | 131 |
131 // Route ID to communicate with the host. | 132 // Route ID to communicate with the host. |
132 const int32_t host_route_id_; | 133 const int32_t host_route_id_; |
133 | 134 |
134 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is | 135 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is |
135 // registered as a DestuctionObserver of |stub_| and will self-delete when | 136 // registered as a DestuctionObserver of |stub_| and will self-delete when |
136 // |stub_| is destroyed. | 137 // |stub_| is destroyed. |
137 GpuCommandBufferStub* const stub_; | 138 GpuCommandBufferStub* const stub_; |
138 | 139 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 | 173 |
173 // A map from picture buffer ID to TextureRef that have not been cleared. | 174 // A map from picture buffer ID to TextureRef that have not been cleared. |
174 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_; | 175 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_; |
175 | 176 |
176 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 177 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
177 }; | 178 }; |
178 | 179 |
179 } // namespace content | 180 } // namespace content |
180 | 181 |
181 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 182 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |