With layers enabled, servicing timers saturate the CPU at times.
This also fixes a compile-time switch in FindCanvas to disable layers.
#endif
#if PLATFORM(ANDROID) && !defined WTF_USE_ACCELERATED_COMPOSITING
-#define WTF_USE_ACCELERATED_COMPOSITING 1
+#define WTF_USE_ACCELERATED_COMPOSITING 0
#endif
#if PLATFORM(IPHONE)
}
void FindCanvas::drawLayers(WebCore::LayerAndroid* layer) {
+#if USE(ACCELERATED_COMPOSITING)
SkPicture* picture = layer->picture();
if (picture) {
setLayerId(layer->uniqueId());
}
for (int i = 0; i < layer->countChildren(); i++)
drawLayers(layer->getChild(i));
+#endif
}
void FindCanvas::drawText(const void* text, size_t byteLength, SkScalar x,