Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 1848403003: Mac h264: Add a flag to specify GLImage status in hardware decode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void OnReset(); 117 void OnReset();
118 void OnDestroy(); 118 void OnDestroy();
119 119
120 // Called on IO thread when |filter_| has been removed. 120 // Called on IO thread when |filter_| has been removed.
121 void OnFilterRemoved(); 121 void OnFilterRemoved();
122 122
123 // Sets the texture to cleared. 123 // Sets the texture to cleared.
124 void SetTextureCleared(const media::Picture& picture); 124 void SetTextureCleared(const media::Picture& picture);
125 125
126 #if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_MACOSX) 126 #if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_MACOSX)
127 // Helper to bind |image| to the texture specified by |client_texture_id|. 127 // Helper to bind |image| to the texture specified by |client_texture_id|. If
128 // |can_bind_to_sampler| is true, then the image may be used as a sampler
129 // directly, otherwise a copy to a staging buffer is required.
128 void BindImage(uint32_t client_texture_id, 130 void BindImage(uint32_t client_texture_id,
129 uint32_t texture_target, 131 uint32_t texture_target,
130 scoped_refptr<gl::GLImage> image); 132 scoped_refptr<gl::GLImage> image,
133 bool can_bind_to_sampler);
131 #endif 134 #endif
132 135
133 // Route ID to communicate with the host. 136 // Route ID to communicate with the host.
134 const int32_t host_route_id_; 137 const int32_t host_route_id_;
135 138
136 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is 139 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is
137 // registered as a DestuctionObserver of |stub_| and will self-delete when 140 // registered as a DestuctionObserver of |stub_| and will self-delete when
138 // |stub_| is destroyed. 141 // |stub_| is destroyed.
139 GpuCommandBufferStub* const stub_; 142 GpuCommandBufferStub* const stub_;
140 143
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 181
179 // A map from picture buffer ID to TextureRef that have not been cleared. 182 // A map from picture buffer ID to TextureRef that have not been cleared.
180 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_; 183 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_;
181 184
182 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 185 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
183 }; 186 };
184 187
185 } // namespace content 188 } // namespace content
186 189
187 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 190 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698