diff options
Diffstat (limited to 'chromium/ui/gfx/blit.cc')
-rw-r--r-- | chromium/ui/gfx/blit.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chromium/ui/gfx/blit.cc b/chromium/ui/gfx/blit.cc index a0bae8a17ed..4b87bc9aac5 100644 --- a/chromium/ui/gfx/blit.cc +++ b/chromium/ui/gfx/blit.cc @@ -11,11 +11,13 @@ #include "ui/gfx/rect.h" #include "ui/gfx/vector2d.h" +#if defined(USE_CAIRO) #if defined(OS_OPENBSD) #include <cairo.h> #elif defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) #include <cairo/cairo.h> #endif +#endif #if defined(OS_MACOSX) #include "base/mac/scoped_cftyperef.h" @@ -76,9 +78,7 @@ void BlitContextToContext(NativeDrawingContext dst_context, base::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 +#elif defined(USE_CAIRO) // Only translations in the source context are supported; more complex // source context transforms will be ignored. cairo_save(dst_context); @@ -92,6 +92,8 @@ void BlitContextToContext(NativeDrawingContext dst_context, cairo_clip(dst_context); cairo_paint(dst_context); cairo_restore(dst_context); +#else + NOTIMPLEMENTED(); #endif } |