summaryrefslogtreecommitdiffstats
path: root/ui/gfx/blit.cc
diff options
context:
space:
mode:
authorzhenghao@google.com <zhenghao@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-24 20:02:14 +0000
committerzhenghao@google.com <zhenghao@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-24 20:02:14 +0000
commit9142dcd968d90dfb728708c7ce9593bc042d9350 (patch)
treeba8122879a197eb79a7641d0b7f623168279f53c /ui/gfx/blit.cc
parent25bc66a244dd0f00d1474adb01f20e02137a1b43 (diff)
downloadchromium_src-9142dcd968d90dfb728708c7ce9593bc042d9350.zip
chromium_src-9142dcd968d90dfb728708c7ce9593bc042d9350.tar.gz
chromium_src-9142dcd968d90dfb728708c7ce9593bc042d9350.tar.bz2
Compile ui/ on Android.
BUG=none TEST=none Review URL: http://codereview.chromium.org/8018011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102660 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/blit.cc')
-rw-r--r--ui/gfx/blit.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/gfx/blit.cc b/ui/gfx/blit.cc
index f98439b..596f13c 100644
--- a/ui/gfx/blit.cc
+++ b/ui/gfx/blit.cc
@@ -10,7 +10,7 @@
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
-#if defined(OS_POSIX) && !defined(OS_MACOSX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
#include <cairo/cairo.h>
#endif
@@ -73,6 +73,8 @@ void BlitContextToContext(NativeDrawingContext dst_context,
base::mac::ScopedCFTypeRef<CGImageRef> src_sub_image(
CGImageCreateWithImageInRect(src_image, src_rect.ToCGRect()));
CGContextDrawImage(dst_context, dst_rect.ToCGRect(), src_sub_image);
+#elif defined(OS_ANDROID)
+ NOTIMPLEMENTED();
#else // Linux, BSD, others
// Only translations in the source context are supported; more complex
// source context transforms will be ignored.