OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // Turn on the logging. | 330 // Turn on the logging. |
331 CommandLine::Init(0, NULL); | 331 CommandLine::Init(0, NULL); |
332 | 332 |
333 FilePath log; | 333 FilePath log; |
334 file_util::GetTempDir(&log); | 334 file_util::GetTempDir(&log); |
335 log = log.Append(O3D_DEBUG_LOG_FILENAME); | 335 log = log.Append(O3D_DEBUG_LOG_FILENAME); |
336 | 336 |
337 InitLogging(log.value().c_str(), | 337 InitLogging(log.value().c_str(), |
338 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, | 338 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, |
339 logging::DONT_LOCK_LOG_FILE, | 339 logging::DONT_LOCK_LOG_FILE, |
340 logging::APPEND_TO_OLD_LOG_FILE); | 340 logging::APPEND_TO_OLD_LOG_FILE, |
| 341 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
341 #endif // O3D_INTERNAL_PLUGIN | 342 #endif // O3D_INTERNAL_PLUGIN |
342 | 343 |
343 DLOG(INFO) << "NP_Initialize"; | 344 DLOG(INFO) << "NP_Initialize"; |
344 | 345 |
345 return o3d::PlatformPostNPInitialize(); | 346 return o3d::PlatformPostNPInitialize(); |
346 } | 347 } |
347 | 348 |
348 NPError EXPORT_SYMBOL OSCALL NP_Shutdown(void) { | 349 NPError EXPORT_SYMBOL OSCALL NP_Shutdown(void) { |
349 HANDLE_CRASHES; | 350 HANDLE_CRASHES; |
350 DLOG(INFO) << "NP_Shutdown"; | 351 DLOG(INFO) << "NP_Shutdown"; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 } // namespace o3d / extern "C" | 411 } // namespace o3d / extern "C" |
411 | 412 |
412 #if !defined(O3D_INTERNAL_PLUGIN) | 413 #if !defined(O3D_INTERNAL_PLUGIN) |
413 extern "C" { | 414 extern "C" { |
414 NPError EXPORT_SYMBOL NP_GetValue(void *instance, NPPVariable variable, | 415 NPError EXPORT_SYMBOL NP_GetValue(void *instance, NPPVariable variable, |
415 void *value) { | 416 void *value) { |
416 return o3d::NP_GetValue(variable, value); | 417 return o3d::NP_GetValue(variable, value); |
417 } | 418 } |
418 } | 419 } |
419 #endif | 420 #endif |
OLD | NEW |