diff options
| author | David 'Digit' Turner <digit@google.com> | 2014-01-17 16:47:15 +0100 |
|---|---|---|
| committer | David 'Digit' Turner <digit@google.com> | 2014-01-21 03:26:57 +0100 |
| commit | bf5b0bc2d53d82bc6ff62ceec2fdaa8b796aa130 (patch) | |
| tree | 5a144545e29d6894149f673b88e5fcaf647b3137 /emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h | |
| parent | 2cab9c9e9b9e8075b27ee466fc01e34392b9380b (diff) | |
| download | sdk-bf5b0bc2d53d82bc6ff62ceec2fdaa8b796aa130.zip sdk-bf5b0bc2d53d82bc6ff62ceec2fdaa8b796aa130.tar.gz sdk-bf5b0bc2d53d82bc6ff62ceec2fdaa8b796aa130.tar.bz2 | |
emulator/opengl: Refactor SmartPtr implementation.
This gets rid of two copies of SmartPtr.h and replaces them with
a single implementation under shared/emugl/common/smart_ptr.*
Note that this uses a new include path rooted at the shared/
directory for classes that are likely to be built both for
the host and the device (in case we back-port this to
device/generic/goldfish/opengl/ in the future).
+ Add a gtest-based set of unittests, after building, just
call 'emugl_common_host_unittests' to run it.
Note that this probably needs a 64-bit version as well,
will come later once I find a way to build GTest for 64-bits
without breaking the platform build :-)
Also note that this moves the class to the 'emugl' namespace,
in order to make the code easier to build out of the platform
tree, and embed it in other projects. More classes will be
transitioned / refactored in future patches.
AOSP_BUG=64806
Change-Id: Ieb326c5f3f002a21537b8a391a82ce2ef9925073
Diffstat (limited to 'emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h')
| -rw-r--r-- | emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h b/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h index 6f41fd7..43577d4 100644 --- a/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h +++ b/emulator/opengl/shared/OpenglCodecCommon/ErrorLog.h @@ -16,7 +16,7 @@ #ifndef _ERROR_LOG_H_ #define _ERROR_LOG_H_ -#if (HAVE_ANDROID_OS == 1) +#ifdef __ANDROID__ # include <cutils/log.h> # define ERR(...) ALOGE(__VA_ARGS__) # ifdef EMUGL_DEBUG |
