#endif
#endif
#if ENABLE(TIZEN_CANVAS_CAIRO_GLES_RENDERING)
-#define ENABLE_TIZEN_USE_XPIXMAP_DECODED_IMAGESOURCE 1 /* Byeongha Cho(byeongha.cho@samsung.com) : Use pixmap surface to decode image and share the buffer between CPU and GPU */
+#define ENABLE_TIZEN_USE_XPIXMAP_DECODED_IMAGESOURCE 0 /* Byeongha Cho(byeongha.cho@samsung.com) : Use pixmap surface to decode image and share the buffer between CPU and GPU */
#if !ENABLE(TIZEN_USE_XPIXMAP_DECODED_IMAGESOURCE)
#define ENABLE_TIZEN_CAIROGLES_IMAGE_CACHE 1
#endif
if ((cairo_get_antialias(cr) != CAIRO_ANTIALIAS_NONE) && (context->getCTM().isIdentityOrTranslationOrFlipped() || context->getCTM().has90MultipleRotation())) {
cairo_antialias_t savedAntialiasRule = cairo_get_antialias(cr);
cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE);
+#if ENABLE(TIZEN_USE_XPIXMAP_DECODED_IMAGESOURCE)
if (nativeImage->surfaceType() == NativeImageCairo::NATIVE_GL_SURFACE)
context->platformContext()->drawSurfaceToContext(nativeImage->glsurface(), dstRect, srcRect, context);
else
- context->platformContext()->drawSurfaceToContext(nativeImage->surface(), dstRect, srcRect, context);
+#endif
+ context->platformContext()->drawSurfaceToContext(nativeImage->surface(), dstRect, srcRect, context);
cairo_set_antialias(cr, savedAntialiasRule);
} else {
+#if ENABLE(TIZEN_USE_XPIXMAP_DECODED_IMAGESOURCE)
if (nativeImage->surfaceType() == NativeImageCairo::NATIVE_GL_SURFACE)
context->platformContext()->drawSurfaceToContext(nativeImage->glsurface(), dstRect, srcRect, context);
else
- context->platformContext()->drawSurfaceToContext(nativeImage->surface(), dstRect, srcRect, context);
+#endif
+ context->platformContext()->drawSurfaceToContext(nativeImage->surface(), dstRect, srcRect, context);
}
} else {
#if ENABLE(TIZEN_USE_XPIXMAP_DECODED_IMAGESOURCE)