From 38e0898607eea03649b7b07e9cf890af7dc33ac7 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Fri, 22 Oct 2010 17:28:43 +0000 Subject: FBTF: More dtor deinlining. (Can almost see the end!) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3962004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63527 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/pepper_devices.h | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'chrome/renderer/pepper_devices.h') diff --git a/chrome/renderer/pepper_devices.h b/chrome/renderer/pepper_devices.h index 2a72f4e..912657a 100644 --- a/chrome/renderer/pepper_devices.h +++ b/chrome/renderer/pepper_devices.h @@ -27,6 +27,7 @@ class SkBitmap; class Graphics2DDeviceContext { public: explicit Graphics2DDeviceContext(WebPluginDelegatePepper* plugin_delegate); + ~Graphics2DDeviceContext(); NPError Initialize(gfx::Rect window_rect, const NPDeviceContext2DConfig* config, @@ -45,22 +46,7 @@ class Graphics2DDeviceContext { skia::PlatformCanvas* canvas() { return canvas_.get(); } private: - struct FlushCallbackData { - FlushCallbackData(NPDeviceFlushContextCallbackPtr f, - NPP n, - NPDeviceContext2D* c, - NPUserData* u) - : function(f), - npp(n), - context(c), - user_data(u) { - } - - NPDeviceFlushContextCallbackPtr function; - NPP npp; - NPDeviceContext2D* context; - NPUserData* user_data; - }; + struct FlushCallbackData; typedef std::vector FlushCallbackVector; WebPluginDelegatePepper* plugin_delegate_; @@ -97,11 +83,7 @@ class Graphics2DDeviceContext { class AudioDeviceContext : public AudioMessageFilter::Delegate, public base::DelegateSimpleThread::Delegate { public: - explicit AudioDeviceContext() - : context_(NULL), - stream_id_(0), - shared_memory_size_(0) { - } + explicit AudioDeviceContext(); virtual ~AudioDeviceContext(); NPError Initialize(AudioMessageFilter* filter, -- cgit v1.1