diff options
author | Ben Murdoch <benm@google.com> | 2011-08-17 02:28:37 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-17 02:28:37 -0700 |
commit | 2d9e4c5514130be5468050cdf7b1ad8c5a57ac39 (patch) | |
tree | 2368bb5a21956acb815e5b5fafb91eaeb8f1ba5c /Source/WebKit/android/RenderSkinButton.h | |
parent | 41b52b2ab048f02c6ec7732f1e1a3430d8272da9 (diff) | |
parent | ce03c1c1203621e552d41a8b3831837636f364a9 (diff) | |
download | external_webkit-2d9e4c5514130be5468050cdf7b1ad8c5a57ac39.zip external_webkit-2d9e4c5514130be5468050cdf7b1ad8c5a57ac39.tar.gz external_webkit-2d9e4c5514130be5468050cdf7b1ad8c5a57ac39.tar.bz2 |
Merge "Lazily decode assets for form controls."
Diffstat (limited to 'Source/WebKit/android/RenderSkinButton.h')
-rw-r--r-- | Source/WebKit/android/RenderSkinButton.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/WebKit/android/RenderSkinButton.h b/Source/WebKit/android/RenderSkinButton.h index e9db74c..83c57dd 100644 --- a/Source/WebKit/android/RenderSkinButton.h +++ b/Source/WebKit/android/RenderSkinButton.h @@ -36,19 +36,19 @@ class IntRect; class RenderSkinButton { public: - /** - * Initialize the class before use. Uses the AssetManager to initialize any - * bitmaps the class may use. - */ - RenderSkinButton(android::AssetManager*, String drawableDirectory); + RenderSkinButton(String drawableDirectory); /** * Draw the skin to the canvas, using the rectangle for its bounds and the * State to determine which skin to use, i.e. focused or not focused. */ - void draw(SkCanvas* , const IntRect& , RenderSkinAndroid::State) const; + void draw(SkCanvas* , const IntRect& , RenderSkinAndroid::State); + + void decode(); private: bool m_decoded; + bool m_decodingAttempted; NinePatch m_buttons[4]; + String m_drawableDirectory; }; } // WebCore |