summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_proxy.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 16:20:01 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 16:20:01 +0000
commit558833a430fd4b8cb2ab88d1bc4bdc580cbc11aa (patch)
tree9edd73b2b08cc1c5faa9bf531c05297f06261705 /chrome/renderer/webplugin_delegate_proxy.h
parentce2d6425e1d30127726c6c7c4482cc4a1f38c086 (diff)
downloadchromium_src-558833a430fd4b8cb2ab88d1bc4bdc580cbc11aa.zip
chromium_src-558833a430fd4b8cb2ab88d1bc4bdc580cbc11aa.tar.gz
chromium_src-558833a430fd4b8cb2ab88d1bc4bdc580cbc11aa.tar.bz2
Push the native canvas into the plugin implementation. On Windows, this means
using SkCanvas instead of an HDC. This way, the pepper implementation can use the more advanced blending of SkCanvas and avoid the Windows API. I did some refactoring in the standard plugin implementation to support this and make it as clean as I could. Hopefully the code is slightly clearer than before. TEST=none BUG=none Review URL: http://codereview.chromium.org/306027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.h')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.h b/chrome/renderer/webplugin_delegate_proxy.h
index 5b2e6d9..5aa7a4a 100644
--- a/chrome/renderer/webplugin_delegate_proxy.h
+++ b/chrome/renderer/webplugin_delegate_proxy.h
@@ -54,7 +54,7 @@ class WebPluginDelegateProxy :
bool load_manually);
virtual void UpdateGeometry(const gfx::Rect& window_rect,
const gfx::Rect& clip_rect);
- virtual void Paint(gfx::NativeDrawingContext context, const gfx::Rect& rect);
+ virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect);
virtual void Print(gfx::NativeDrawingContext context);
virtual NPObject* GetPluginScriptableObject();
virtual void DidFinishLoadWithReason(const GURL& url, NPReason reason,
@@ -134,7 +134,7 @@ class WebPluginDelegateProxy :
void OnDeferResourceLoading(int resource_id, bool defer);
// Draw a graphic indicating a crashed plugin.
- void PaintSadPlugin(gfx::NativeDrawingContext context, const gfx::Rect& rect);
+ void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect);
// Returns true if the given rectangle is different in the native drawing
// context and the current background bitmap.