diff options
author | dspringer@google.com <dspringer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 13:56:12 +0000 |
---|---|---|
committer | dspringer@google.com <dspringer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 13:56:12 +0000 |
commit | 92c4a81f28a463cd71d782f7ae9b768c91e59d10 (patch) | |
tree | 38396d79f4f155b88b5a8393a5ed9e383f5ed144 /gpu/command_buffer/common/logging.h | |
parent | 2a0641aaf1f7828d8b2c3ce451d29455b4c9a466 (diff) | |
download | chromium_src-92c4a81f28a463cd71d782f7ae9b768c91e59d10.zip chromium_src-92c4a81f28a463cd71d782f7ae9b768c91e59d10.tar.gz chromium_src-92c4a81f28a463cd71d782f7ae9b768c91e59d10.tar.bz2 |
Change a couple of LOG/CHECK macros to GPU_LOG/GPU_CHECK, which means I can
use this code as-is to build a GPU client outside of the Chromium tree.
This is required for debugging NaCl modules as trusted plugins in the NaCl SDK.
Review URL: http://codereview.chromium.org/1000002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common/logging.h')
-rw-r--r-- | gpu/command_buffer/common/logging.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/logging.h b/gpu/command_buffer/common/logging.h index 169fd65..92ea0aca 100644 --- a/gpu/command_buffer/common/logging.h +++ b/gpu/command_buffer/common/logging.h @@ -9,6 +9,17 @@ #define GPU_COMMAND_BUFFER_COMMON_LOGGING_H_ #ifndef __native_client__ +#if defined(TRUSTED_GPU_LIBRARY_BUILD) +// Turn off base/logging macros for the trusted library build. +// TODO(dspringer): remove this once building trusted plugins in the Native +// Client SDK is no longer needed. +#define OMIT_DLOG_AND_DCHECK 1 +#define GPU_LOG DLOG +#define GPU_CHECK DCHECK +#else +#define GPU_LOG LOG +#define GPU_CHECK CHECK +#endif // defined(TRUSTED_GPU_LIBRARY_BUILD) #include "base/logging.h" #else #include <sstream> |