diff options
author | michaelbai@chromium.org <michaelbai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 19:03:14 +0000 |
---|---|---|
committer | michaelbai@chromium.org <michaelbai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 19:03:14 +0000 |
commit | 4fa1077b67ab0be70dcb5185cc8b2223eaf4e321 (patch) | |
tree | 0c130e5b6a345d8c5acf9ccfd76c3f8c09b8c295 /skia/config | |
parent | 425853fe26f9e3e1b7629c8722340aeb9da7f3d9 (diff) | |
download | chromium_src-4fa1077b67ab0be70dcb5185cc8b2223eaf4e321.zip chromium_src-4fa1077b67ab0be70dcb5185cc8b2223eaf4e321.tar.gz chromium_src-4fa1077b67ab0be70dcb5185cc8b2223eaf4e321.tar.bz2 |
Upstream the rest of skia diff
- Removed use-system-skia for android, as it didn't work now.
- Combined multiple android condition into one.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10806077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/config')
-rw-r--r-- | skia/config/SkUserConfig.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h index fb80b3c..0b3f3c7 100644 --- a/skia/config/SkUserConfig.h +++ b/skia/config/SkUserConfig.h @@ -18,18 +18,18 @@ #define SkUserConfig_DEFINED /* SkTypes.h, the root of the public header files, does the following trick: - + #include <SkPreConfig.h> #include <SkUserConfig.h> #include <SkPostConfig.h> - + SkPreConfig.h runs first, and it is responsible for initializing certain skia defines. - + SkPostConfig.h runs last, and its job is to just check that the final defines are consistent (i.e. that we don't have mutually conflicting defines). - + SkUserConfig.h (this file) runs in the middle. It gets to change or augment the list of flags initially set in preconfig, and then postconfig checks that everything still makes sense. @@ -71,7 +71,7 @@ parameter checking, but sometimes it can be quite intrusive (e.g. check that each 32bit pixel is in premultiplied form). This code can be very useful during development, but will slow things down in a shipping product. - + By default, these mutually exclusive flags are defined in SkPreConfig.h, based on the presence or absence of NDEBUG, but that decision can be changed here. @@ -186,11 +186,12 @@ SK_API void SkDebugf_FileLine(const char* file, int line, bool fatal, "%s:%d: failed assertion \"%s\"\n", \ __FILE__, __LINE__, #cond); } } while (false) -// All little-endian Chrome platforms agree: BGRA is the optimal pixel layout. +#if !defined(ANDROID) // On Android, we use the skia default settings. #define SK_A32_SHIFT 24 #define SK_R32_SHIFT 16 #define SK_G32_SHIFT 8 #define SK_B32_SHIFT 0 +#endif #if defined(SK_BUILD_FOR_WIN32) |