| OLD | NEW |
| 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 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" |
| 6 | 6 |
| 7 #if !defined(OS_WIN) | 7 #if !defined(OS_WIN) |
| 8 #error This file should only be built on Windows. | 8 #error This file should only be built on Windows. |
| 9 #endif // !defined(OS_WIN) | 9 #endif // !defined(OS_WIN) |
| 10 | 10 |
| 11 #include <ks.h> | 11 #include <ks.h> |
| 12 #include <codecapi.h> | 12 #include <codecapi.h> |
| 13 #include <mfapi.h> | 13 #include <mfapi.h> |
| 14 #include <mferror.h> | 14 #include <mferror.h> |
| 15 #include <wmcodecdsp.h> | 15 #include <wmcodecdsp.h> |
| 16 | 16 |
| 17 #include "base/bind.h" | 17 #include "base/bind.h" |
| 18 #include "base/callback.h" | 18 #include "base/callback.h" |
| 19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
| 20 #include "base/debug/trace_event.h" | 20 #include "base/debug/trace_event.h" |
| 21 #include "base/logging.h" | 21 #include "base/logging.h" |
| 22 #include "base/memory/scoped_handle.h" | |
| 23 #include "base/memory/scoped_ptr.h" | 22 #include "base/memory/scoped_ptr.h" |
| 24 #include "base/memory/shared_memory.h" | 23 #include "base/memory/shared_memory.h" |
| 25 #include "base/message_loop/message_loop.h" | 24 #include "base/message_loop/message_loop.h" |
| 26 #include "base/win/windows_version.h" | 25 #include "base/win/windows_version.h" |
| 27 #include "media/video/video_decode_accelerator.h" | 26 #include "media/video/video_decode_accelerator.h" |
| 28 #include "ui/gl/gl_bindings.h" | 27 #include "ui/gl/gl_bindings.h" |
| 29 #include "ui/gl/gl_surface_egl.h" | 28 #include "ui/gl/gl_surface_egl.h" |
| 30 #include "ui/gl/gl_switches.h" | 29 #include "ui/gl/gl_switches.h" |
| 31 | 30 |
| 32 namespace content { | 31 namespace content { |
| (...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 | 1176 |
| 1178 for (index = picture_buffers.begin(); | 1177 for (index = picture_buffers.begin(); |
| 1179 index != picture_buffers.end(); | 1178 index != picture_buffers.end(); |
| 1180 ++index) { | 1179 ++index) { |
| 1181 DVLOG(1) << "Dismissing picture id: " << index->second->id(); | 1180 DVLOG(1) << "Dismissing picture id: " << index->second->id(); |
| 1182 client_->DismissPictureBuffer(index->second->id()); | 1181 client_->DismissPictureBuffer(index->second->id()); |
| 1183 } | 1182 } |
| 1184 } | 1183 } |
| 1185 | 1184 |
| 1186 } // namespace content | 1185 } // namespace content |
| OLD | NEW |