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

Side by Side Diff: media/gpu/avda_codec_image.h

Issue 1993173002: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MEDIA_GPU_AVDA_CODEC_IMAGE_H_ 5 #ifndef MEDIA_GPU_AVDA_CODEC_IMAGE_H_
6 #define MEDIA_GPU_AVDA_CODEC_IMAGE_H_ 6 #define MEDIA_GPU_AVDA_CODEC_IMAGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // May be null. 143 // May be null.
144 media::MediaCodecBridge* media_codec_; 144 media::MediaCodecBridge* media_codec_;
145 145
146 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder_; 146 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder_;
147 147
148 // The SurfaceTexture to render to. This is null when rendering to a 148 // The SurfaceTexture to render to. This is null when rendering to a
149 // SurfaceView. 149 // SurfaceView.
150 const scoped_refptr<gfx::SurfaceTexture> surface_texture_; 150 const scoped_refptr<gfx::SurfaceTexture> surface_texture_;
151 151
152 // Should we detach |surface_texture_| from its GL context when we are
153 // deleted? This happens when it's using our Texture's texture handle.
154 bool detach_surface_texture_on_destruction_;
155
156 // The texture that we're attached to. 152 // The texture that we're attached to.
157 gpu::gles2::Texture* texture_; 153 gpu::gles2::Texture* texture_;
158 154
159 // Texture matrix of the front buffer of the surface texture. 155 // Texture matrix of the front buffer of the surface texture.
160 float gl_matrix_[16]; 156 float gl_matrix_[16];
161 157
162 // The picture buffer id attached to this image. 158 // The picture buffer id attached to this image.
163 int picture_buffer_id_; 159 int picture_buffer_id_;
164 160
165 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); 161 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage);
166 }; 162 };
167 163
168 } // namespace media 164 } // namespace media
169 165
170 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ 166 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698