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

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

Issue 1818073002: Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase [If you wait by the river long enough, the bodies of your gyp files will float by] Created 4 years, 4 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 | « gpu/ipc/service/stream_texture_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "media/gpu/avda_codec_image.h" 5 #include "media/gpu/avda_codec_image.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 224 }
225 225
226 return scoped_make_current; 226 return scoped_make_current;
227 } 227 }
228 228
229 void AVDACodecImage::GetTextureMatrix(float matrix[16]) { 229 void AVDACodecImage::GetTextureMatrix(float matrix[16]) {
230 // Our current matrix may be stale. Update it if possible. 230 // Our current matrix may be stale. Update it if possible.
231 if (surface_texture_) 231 if (surface_texture_)
232 UpdateSurface(UpdateMode::RENDER_TO_FRONT_BUFFER); 232 UpdateSurface(UpdateMode::RENDER_TO_FRONT_BUFFER);
233 memcpy(matrix, gl_matrix_, sizeof(gl_matrix_)); 233 memcpy(matrix, gl_matrix_, sizeof(gl_matrix_));
234 YInvertMatrix(matrix);
234 } 235 }
235 236
236 bool AVDACodecImage::IsCodecBufferOutstanding() const { 237 bool AVDACodecImage::IsCodecBufferOutstanding() const {
237 static_assert(kUpdateOnly < 0 && kUpdateOnly > kRendered && 238 static_assert(kUpdateOnly < 0 && kUpdateOnly > kRendered &&
238 kRendered > kInvalidCodecBufferIndex, 239 kRendered > kInvalidCodecBufferIndex,
239 "Codec buffer index enum values are not ordered correctly."); 240 "Codec buffer index enum values are not ordered correctly.");
240 return codec_buffer_index_ > kRendered && media_codec_; 241 return codec_buffer_index_ > kRendered && media_codec_;
241 } 242 }
242 243
243 } // namespace media 244 } // namespace media
OLDNEW
« no previous file with comments | « gpu/ipc/service/stream_texture_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698