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 "media/gpu/dxva_video_decode_accelerator_win.h" | 5 #include "media/gpu/dxva_video_decode_accelerator_win.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #if !defined(OS_WIN) | 9 #if !defined(OS_WIN) |
10 #error This file should only be built on Windows. | 10 #error This file should only be built on Windows. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "build/build_config.h" | 43 #include "build/build_config.h" |
44 #include "gpu/command_buffer/service/gpu_preferences.h" | 44 #include "gpu/command_buffer/service/gpu_preferences.h" |
45 #include "gpu/config/gpu_driver_bug_workarounds.h" | 45 #include "gpu/config/gpu_driver_bug_workarounds.h" |
46 #include "media/base/media_switches.h" | 46 #include "media/base/media_switches.h" |
47 #include "media/base/win/mf_helpers.h" | 47 #include "media/base/win/mf_helpers.h" |
48 #include "media/base/win/mf_initializer.h" | 48 #include "media/base/win/mf_initializer.h" |
49 #include "media/gpu/dxva_picture_buffer_win.h" | 49 #include "media/gpu/dxva_picture_buffer_win.h" |
50 #include "media/video/video_decode_accelerator.h" | 50 #include "media/video/video_decode_accelerator.h" |
51 #include "third_party/angle/include/EGL/egl.h" | 51 #include "third_party/angle/include/EGL/egl.h" |
52 #include "third_party/angle/include/EGL/eglext.h" | 52 #include "third_party/angle/include/EGL/eglext.h" |
53 #include "ui/base/ui_base_switches.h" | 53 #include "ui/display/display_switches.h" |
54 #include "ui/gfx/color_space_win.h" | 54 #include "ui/gfx/color_space_win.h" |
55 #include "ui/gl/gl_angle_util_win.h" | 55 #include "ui/gl/gl_angle_util_win.h" |
56 #include "ui/gl/gl_bindings.h" | 56 #include "ui/gl/gl_bindings.h" |
57 #include "ui/gl/gl_context.h" | 57 #include "ui/gl/gl_context.h" |
58 #include "ui/gl/gl_fence.h" | 58 #include "ui/gl/gl_fence.h" |
59 #include "ui/gl/gl_surface_egl.h" | 59 #include "ui/gl/gl_surface_egl.h" |
60 | 60 |
61 namespace { | 61 namespace { |
62 | 62 |
63 // AMD | 63 // AMD |
(...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2974 base::Bind(&DXVAVideoDecodeAccelerator::DecodePendingInputBuffers, | 2974 base::Bind(&DXVAVideoDecodeAccelerator::DecodePendingInputBuffers, |
2975 base::Unretained(this))); | 2975 base::Unretained(this))); |
2976 } | 2976 } |
2977 | 2977 |
2978 uint32_t DXVAVideoDecodeAccelerator::GetTextureTarget() const { | 2978 uint32_t DXVAVideoDecodeAccelerator::GetTextureTarget() const { |
2979 bool provide_nv12_textures = share_nv12_textures_ || copy_nv12_textures_; | 2979 bool provide_nv12_textures = share_nv12_textures_ || copy_nv12_textures_; |
2980 return provide_nv12_textures ? GL_TEXTURE_EXTERNAL_OES : GL_TEXTURE_2D; | 2980 return provide_nv12_textures ? GL_TEXTURE_EXTERNAL_OES : GL_TEXTURE_2D; |
2981 } | 2981 } |
2982 | 2982 |
2983 } // namespace media | 2983 } // namespace media |
OLD | NEW |