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

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

Issue 2461073002: Use MediaCodec.setOutputSurface() for fullscreen transitions on M. (Closed)
Patch Set: Fix IPC, but now everything explodes :( Created 4 years, 1 month 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 int codec_buffer_index_; 136 int codec_buffer_index_;
137 137
138 // Our image size. 138 // Our image size.
139 gfx::Size size_; 139 gfx::Size size_;
140 140
141 // May be null. 141 // May be null.
142 MediaCodecBridge* media_codec_; 142 MediaCodecBridge* media_codec_;
143 143
144 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder_; 144 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder_;
145 145
146 // Indicates if we're rendering to a SurfaceTexture or not.
147 const bool has_surface_texture_;
148
149 // The texture that we're attached to. 146 // The texture that we're attached to.
150 gpu::gles2::Texture* texture_; 147 gpu::gles2::Texture* texture_;
151 148
152 // The picture buffer id attached to this image. 149 // The picture buffer id attached to this image.
153 int picture_buffer_id_; 150 int picture_buffer_id_;
154 151
155 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage); 152 DISALLOW_COPY_AND_ASSIGN(AVDACodecImage);
156 }; 153 };
157 154
158 } // namespace media 155 } // namespace media
159 156
160 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_ 157 #endif // MEDIA_GPU_AVDA_CODEC_IMAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698