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/base/media.h" | 5 #include "media/base/media.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #if defined(_WIN32_WINNT_WIN8) | 8 #if defined(_WIN32_WINNT_WIN8) |
9 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h. | 9 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h. |
10 #undef FACILITY_VISUALCPP | 10 #undef FACILITY_VISUALCPP |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 void InitializeMediaLibraryForTesting() { | 117 void InitializeMediaLibraryForTesting() { |
118 FilePath file_path; | 118 FilePath file_path; |
119 CHECK(PathService::Get(base::DIR_EXE, &file_path)); | 119 CHECK(PathService::Get(base::DIR_EXE, &file_path)); |
120 CHECK(InitializeMediaLibrary(file_path)); | 120 CHECK(InitializeMediaLibrary(file_path)); |
121 } | 121 } |
122 | 122 |
123 bool IsMediaLibraryInitialized() { | 123 bool IsMediaLibraryInitialized() { |
124 return g_media_library_is_initialized; | 124 return g_media_library_is_initialized; |
125 } | 125 } |
126 | 126 |
127 bool InitializeOpenMaxLibrary(const FilePath& module_dir) { | |
128 NOTIMPLEMENTED() << "OpenMAX is not used in Windows."; | |
129 return false; | |
130 } | |
131 | |
132 } // namespace media | 127 } // namespace media |
OLD | NEW |