bool ImageBuffer::canUseGpuRendering() { SkPicture* canvasRecording = context()->platformContext()->getRecordingPicture(); if(canvasRecording != NULL) return canvasRecording->canUseGpuRendering(); else return false; }
bool ImageBuffer::canUseGpuRendering() { #ifdef CANVAS2D_BMP_OPT SkPicture* canvasRecording = context()->platformContext()->getRecordingPicture(); if(canvasRecording != NULL) { //return true; return canvasRecording->canUseGpuRendering(); } else { return false; } #else return false ; #endif }