diff options
author | Derek Sollenberger <djsollen@google.com> | 2011-01-07 08:17:00 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-07 08:17:00 -0800 |
commit | 7d9279bfeb8c2e16692d261f88891ec41f354f1f (patch) | |
tree | e20ed8d0b67971dab937c35ace61b1db24e7c618 | |
parent | feb8ec2bfc7689c9573c5b5dd93097495377008c (diff) | |
parent | a614d906eb7d2f52fea2d99757578c294fc898b4 (diff) | |
download | external_webkit-7d9279bfeb8c2e16692d261f88891ec41f354f1f.zip external_webkit-7d9279bfeb8c2e16692d261f88891ec41f354f1f.tar.gz external_webkit-7d9279bfeb8c2e16692d261f88891ec41f354f1f.tar.bz2 |
Merge "Add additional debugging for plugins." into honeycomb
-rw-r--r-- | WebKit/android/plugins/PluginDebugAndroid.cpp | 4 | ||||
-rw-r--r-- | WebKit/android/plugins/PluginDebugAndroid.h | 2 | ||||
-rw-r--r-- | WebKit/android/plugins/PluginWidgetAndroid.cpp | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/WebKit/android/plugins/PluginDebugAndroid.cpp b/WebKit/android/plugins/PluginDebugAndroid.cpp index 0388d4b..3958714 100644 --- a/WebKit/android/plugins/PluginDebugAndroid.cpp +++ b/WebKit/android/plugins/PluginDebugAndroid.cpp @@ -108,6 +108,10 @@ void anp_logPluginEvent(void* npp, const ANPEvent* evt, int16_t returnVal, int e npp, elapsedTime, evt->data.draw.data.bitmap.format, evt->data.draw.clip.left, evt->data.draw.clip.top, evt->data.draw.clip.right, evt->data.draw.clip.bottom); + } else if (evt->data.draw.model == kOpenGL_ANPDrawingModel) { + anp_logPlugin("%p EVENT::DRAW openGL time=%d dimensions=[%d,%d]", + npp, elapsedTime, evt->data.draw.data.surface.width, + evt->data.draw.data.surface.height); } else { anp_logPlugin("%p EVENT::DRAW unknown drawing model", npp); } diff --git a/WebKit/android/plugins/PluginDebugAndroid.h b/WebKit/android/plugins/PluginDebugAndroid.h index 92092d5..5002882 100644 --- a/WebKit/android/plugins/PluginDebugAndroid.h +++ b/WebKit/android/plugins/PluginDebugAndroid.h @@ -47,7 +47,7 @@ void anp_logPlugin(const char format[], ...); each event are logged, as well as the value returned by the plugin instance and how long the instance took to process the event (in milliseconds). */ -void anp_logPluginEvent(void* npp, const ANPEvent* event, int16 returnVal, int elapsedTime); +void anp_logPluginEvent(void* npp, const ANPEvent* event, int16_t returnVal, int elapsedTime); #else # define PLUGIN_LOG(A, B...) do { } while(0) diff --git a/WebKit/android/plugins/PluginWidgetAndroid.cpp b/WebKit/android/plugins/PluginWidgetAndroid.cpp index de3d944..b995f17 100644 --- a/WebKit/android/plugins/PluginWidgetAndroid.cpp +++ b/WebKit/android/plugins/PluginWidgetAndroid.cpp @@ -365,6 +365,8 @@ void PluginWidgetAndroid::setVisibleScreen(const ANPRectI& visibleDocRect, float // notify the plugin of the new size // TODO what if the plugin changes sizes? if (m_drawingModel == kOpenGL_ANPDrawingModel && m_zoomLevel != zoom) { + PLUGIN_LOG("%s (%d,%d)[%f]", __FUNCTION__, m_pluginWindow->width, + m_pluginWindow->height, zoom); ANPEvent event; SkANP::InitEvent(&event, kDraw_ANPEventType); event.data.draw.model = kOpenGL_ANPDrawingModel; |