diff options
author | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-06 19:32:00 +0000 |
---|---|---|
committer | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-06 19:32:00 +0000 |
commit | f231cddb76e3e8fc1e7fc35fc0cc1be4ce4aef5a (patch) | |
tree | f4d4ca589566dc69aa6897ab8dc8120750cad97b /third_party/openmax | |
parent | 69c5845f97c6c3710aa154ae0f81dfc40c14ea66 (diff) | |
download | chromium_src-f231cddb76e3e8fc1e7fc35fc0cc1be4ce4aef5a.zip chromium_src-f231cddb76e3e8fc1e7fc35fc0cc1be4ce4aef5a.tar.gz chromium_src-f231cddb76e3e8fc1e7fc35fc0cc1be4ce4aef5a.tar.bz2 |
Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1.
Internal-only site: http://go/videostack/engineering/dead-code-elimination
Review URL: https://chromiumcodereview.appspot.com/10837118
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150129 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/openmax')
-rw-r--r-- | third_party/openmax/README.chromium | 1 | ||||
-rw-r--r-- | third_party/openmax/omx_stub.cc | 42 | ||||
-rw-r--r-- | third_party/openmax/openmax.gyp | 111 |
3 files changed, 1 insertions, 153 deletions
diff --git a/third_party/openmax/README.chromium b/third_party/openmax/README.chromium index 7245347..5794ff7 100644 --- a/third_party/openmax/README.chromium +++ b/third_party/openmax/README.chromium @@ -12,3 +12,4 @@ From http://www.khronos.org/openmax/headers/omx_il_v1_1/omx_il_v1_1_2_headers.zi Local Modifications: - Converted to utf-8 with: vim +"argdo write ++enc=utf-8" *.h + diff --git a/third_party/openmax/omx_stub.cc b/third_party/openmax/omx_stub.cc deleted file mode 100644 index 6da8e7b..0000000 --- a/third_party/openmax/omx_stub.cc +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Satisfies linker dependencies for targets requiring an OpenMAX Core library. -// Not intended in any way to be functional!! - -#include <OMX_Core.h> - -#define NOTIMPLEMENTED_POLICY 3 // Fail at runtime via DCHECK. -#include "base/logging.h" - -extern "C" { - -OMX_API OMX_ERRORTYPE OMX_Init() { - NOTIMPLEMENTED(); - return OMX_ErrorNotImplemented; -} - -OMX_API OMX_ERRORTYPE OMX_Deinit() { - NOTIMPLEMENTED(); - return OMX_ErrorNotImplemented; -} - -OMX_API OMX_ERRORTYPE OMX_GetHandle(OMX_HANDLETYPE*, OMX_STRING, OMX_PTR, - OMX_CALLBACKTYPE*) { - NOTIMPLEMENTED(); - return OMX_ErrorNotImplemented; -} - -OMX_API OMX_ERRORTYPE OMX_FreeHandle(OMX_HANDLETYPE) { - NOTIMPLEMENTED(); - return OMX_ErrorNotImplemented; -} - -OMX_API OMX_ERRORTYPE OMX_GetComponentsOfRole(OMX_STRING, OMX_U32*, - OMX_U8**) { - NOTIMPLEMENTED(); - return OMX_ErrorNotImplemented; -} - -} // extern "C" diff --git a/third_party/openmax/openmax.gyp b/third_party/openmax/openmax.gyp deleted file mode 100644 index 822762b..0000000 --- a/third_party/openmax/openmax.gyp +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright (c) 2010 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'variables': { - 'openmax_type%': 'stub', - }, - 'targets': [ - { - # OpenMAX IL level of API. - 'target_name': 'il', - 'sources': [ - 'il/OMX_Audio.h', - 'il/OMX_Component.h', - 'il/OMX_ContentPipe.h', - 'il/OMX_Core.h', - 'il/OMX_Image.h', - 'il/OMX_Index.h', - 'il/OMX_IVCommon.h', - 'il/OMX_Other.h', - 'il/OMX_Types.h', - 'il/OMX_Video.h', - ], - 'direct_dependent_settings': { - 'include_dirs': [ - 'il', - ], - 'defines': [ - '__OMX_EXPORTS', - ], - }, - 'conditions': [ - ['OS!="linux"', { - 'type': 'static_library', - 'dependencies': [ - '../../base/base.gyp:base', - ], - 'sources': [ - 'omx_stub.cc', - ], - 'include_dirs': [ - 'il', - ], - 'defines': [ - '__OMX_EXPORTS', - ], - }], - ['OS=="linux"', { - 'variables': { - 'generate_stubs_script': '../../tools/generate_stubs/generate_stubs.py', - 'sig_files': [ - 'il.sigs', - ], - 'extra_header': 'il_stub_headers.fragment', - 'outfile_type': 'posix_stubs', - 'stubs_filename_root': 'il_stubs', - 'project_path': 'third_party/openmax', - 'intermediate_dir': '<(INTERMEDIATE_DIR)', - 'output_root': '<(SHARED_INTERMEDIATE_DIR)/openmax', - }, - 'type': 'static_library', - 'dependencies': [ - '../../base/base.gyp:base', - ], - 'defines': [ - '__OMX_EXPORTS', - ], - 'include_dirs': [ - 'il', - '<(output_root)', - '../..', # The chromium 'src' directory. - ], - 'hard_dependency': 1, - 'direct_dependent_settings': { - 'include_dirs': [ - '<(output_root)', - '../..', # The chromium 'src' directory. - ], - }, - 'actions': [ - { - 'action_name': 'generate_stubs', - 'inputs': [ - '<(generate_stubs_script)', - '<(extra_header)', - '<@(sig_files)', - ], - 'outputs': [ - '<(intermediate_dir)/<(stubs_filename_root).cc', - '<(output_root)/<(project_path)/<(stubs_filename_root).h', - ], - 'action': ['python', - '<(generate_stubs_script)', - '-i', '<(intermediate_dir)', - '-o', '<(output_root)/<(project_path)', - '-t', '<(outfile_type)', - '-e', '<(extra_header)', - '-s', '<(stubs_filename_root)', - '-p', '<(project_path)', - '<@(_inputs)', - ], - 'process_outputs_as_sources': 1, - 'message': 'Generating OpenMAX IL stubs for dynamic loading.', - }, - ], - }], - ], - }, - ], -} |