summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/RenderSkinRadio.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-07-27 13:53:42 +0100
committerBen Murdoch <benm@google.com>2011-08-16 16:40:55 +0100
commitce03c1c1203621e552d41a8b3831837636f364a9 (patch)
treed2ec3d82cadc9d5a66ea73ade2932de955e4618f /Source/WebKit/android/RenderSkinRadio.h
parent0f0dadb092f4aaa1a34d293f9c4b2a14e3b3e3df (diff)
downloadexternal_webkit-ce03c1c1203621e552d41a8b3831837636f364a9.zip
external_webkit-ce03c1c1203621e552d41a8b3831837636f364a9.tar.gz
external_webkit-ce03c1c1203621e552d41a8b3831837636f364a9.tar.bz2
Lazily decode assets for form controls.
Rather than decoding the graphics when we create a WebView, wait until we actually need them. This saves about 50ms on native WebView creation time. Requires frameworks/base change: I5a2e87d03d73fa74ebb00c33567783225ed97d3a Bug: 5084146 Change-Id: Ia6c17634f535ed75b2a0757ac4d53f1a0befb78a
Diffstat (limited to 'Source/WebKit/android/RenderSkinRadio.h')
-rw-r--r--Source/WebKit/android/RenderSkinRadio.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebKit/android/RenderSkinRadio.h b/Source/WebKit/android/RenderSkinRadio.h
index f77e1be..34101cf 100644
--- a/Source/WebKit/android/RenderSkinRadio.h
+++ b/Source/WebKit/android/RenderSkinRadio.h
@@ -44,10 +44,10 @@ class IntRect;
class RenderSkinRadio
{
public:
- /**
- * Initialize the class before use. Uses the AssetManager to initialize any bitmaps the class may use.
- */
- static void Init(android::AssetManager*, String drawableDirectory);
+ static void SetDrawableDirectory(String drawableDirectory);
+
+ // Perform lazy decoding the first time this a radio/checkbox is needed.
+ static void Decode();
/**
* Draw the element to the canvas at the specified size and location.