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

Side by Side Diff: content/renderer/render_process_impl.cc

Issue 7066071: Removing defunct OpenMAX code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: removed tab Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <objidl.h> 9 #include <objidl.h>
10 #include <mlang.h> 10 #include <mlang.h>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 webkit_glue::SetJavaScriptFlags( 74 webkit_glue::SetJavaScriptFlags(
75 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); 75 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags));
76 } 76 }
77 77
78 // Note that under Linux, the media library will normally already have 78 // Note that under Linux, the media library will normally already have
79 // been initialized by the Zygote before this instance became a Renderer. 79 // been initialized by the Zygote before this instance became a Renderer.
80 FilePath media_path = 80 FilePath media_path =
81 content::GetContentClient()->renderer()->GetMediaLibraryPath(); 81 content::GetContentClient()->renderer()->GetMediaLibraryPath();
82 if (!media_path.empty()) 82 if (!media_path.empty())
83 media::InitializeMediaLibrary(media_path); 83 media::InitializeMediaLibrary(media_path);
84
85 #if !defined(OS_MACOSX)
86 // TODO(hclam): Add more checks here. Currently this is not used.
87 if (media::IsMediaLibraryInitialized() &&
88 CommandLine::ForCurrentProcess()->HasSwitch(
89 switches::kEnableOpenMax)) {
90 media::InitializeOpenMaxLibrary(media_path);
91 }
92 #endif
93 } 84 }
94 85
95 RenderProcessImpl::~RenderProcessImpl() { 86 RenderProcessImpl::~RenderProcessImpl() {
96 // TODO(port): Try and limit what we pull in for our non-Win unit test bundle. 87 // TODO(port): Try and limit what we pull in for our non-Win unit test bundle.
97 #ifndef NDEBUG 88 #ifndef NDEBUG
98 // log important leaked objects 89 // log important leaked objects
99 webkit_glue::CheckForLeaks(); 90 webkit_glue::CheckForLeaks();
100 #endif 91 #endif
101 92
102 GetShutDownEvent()->Signal(); 93 GetShutDownEvent()->Signal();
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 243 }
253 244
254 void RenderProcessImpl::ClearTransportDIBCache() { 245 void RenderProcessImpl::ClearTransportDIBCache() {
255 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { 246 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) {
256 if (shared_mem_cache_[i]) { 247 if (shared_mem_cache_[i]) {
257 FreeTransportDIB(shared_mem_cache_[i]); 248 FreeTransportDIB(shared_mem_cache_[i]);
258 shared_mem_cache_[i] = NULL; 249 shared_mem_cache_[i] = NULL;
259 } 250 }
260 } 251 }
261 } 252 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/browser_render_process_host.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698