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

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

Issue 1822173002: Mac: Decode hardware to 420 instead of 422 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix name Created 4 years, 9 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void OnReset(); 115 void OnReset();
116 void OnDestroy(); 116 void OnDestroy();
117 117
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|. If
126 // |can_bind_to_sampler| is true, then the image may be used as a sampler
127 // directly, otherwise a copy to a staging buffer is required.
126 void BindImage(uint32_t client_texture_id, 128 void BindImage(uint32_t client_texture_id,
127 uint32_t texture_target, 129 uint32_t texture_target,
128 scoped_refptr<gl::GLImage> image); 130 scoped_refptr<gl::GLImage> image,
131 bool can_bind_to_sampler);
129 #endif 132 #endif
130 133
131 // Route ID to communicate with the host. 134 // Route ID to communicate with the host.
132 const int32_t host_route_id_; 135 const int32_t host_route_id_;
133 136
134 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is 137 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is
135 // registered as a DestuctionObserver of |stub_| and will self-delete when 138 // registered as a DestuctionObserver of |stub_| and will self-delete when
136 // |stub_| is destroyed. 139 // |stub_| is destroyed.
137 GpuCommandBufferStub* const stub_; 140 GpuCommandBufferStub* const stub_;
138 141
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 175
173 // A map from picture buffer ID to TextureRef that have not been cleared. 176 // 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_; 177 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_;
175 178
176 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 179 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
177 }; 180 };
178 181
179 } // namespace content 182 } // namespace content
180 183
181 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 184 #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