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

Unified Diff: content/common/gpu/media/vt_video_decode_accelerator.cc

Issue 1354483004: Re-land: ui: Add GLImage unit test framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/vt_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/vt_video_decode_accelerator.cc b/content/common/gpu/media/vt_video_decode_accelerator.cc
index 722a9699697d01c6b6b9f5b4b717a49bb491de98..076c9dcd3c8f32a0ebd786446cf72c0d530dcf0d 100644
--- a/content/common/gpu/media/vt_video_decode_accelerator.cc
+++ b/content/common/gpu/media/vt_video_decode_accelerator.cc
@@ -1044,9 +1044,10 @@ bool VTVideoDecodeAccelerator::SendFrame(const Frame& frame) {
}
bool allow_overlay = false;
- scoped_refptr<gfx::GLImageIOSurface> gl_image(new gfx::GLImageIOSurface(
- gfx::GenericSharedMemoryId(), frame.coded_size, GL_BGRA_EXT));
- if (gl_image->Initialize(surface, gfx::BufferFormat::BGRA_8888)) {
+ scoped_refptr<gfx::GLImageIOSurface> gl_image(
+ new gfx::GLImageIOSurface(frame.coded_size, GL_BGRA_EXT));
+ if (gl_image->Initialize(surface, gfx::GenericSharedMemoryId(),
+ gfx::BufferFormat::BGRA_8888)) {
allow_overlay = true;
} else {
gl_image = nullptr;
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_io_surface.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698