Exemple #1
0
bool ImageBuffer::canUseGpuRendering()
{
    SkPicture* canvasRecording = context()->platformContext()->getRecordingPicture();
    if(canvasRecording != NULL)
        return canvasRecording->canUseGpuRendering();
    else
        return false;
}
Exemple #2
0
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 
}