Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3930)

Unified Diff: chrome/plugin/webplugin_proxy.cc

Issue 53106: We need to set the clipping region of the HDC passed in to a windowless flash... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/plugins/test/npapi_test_plugin.vcproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/webplugin_proxy.cc
===================================================================
--- chrome/plugin/webplugin_proxy.cc (revision 12593)
+++ chrome/plugin/webplugin_proxy.cc (working copy)
@@ -322,9 +322,16 @@
rect.x(), rect.y(), SRCCOPY);
}
+ RECT clip_rect = rect.ToRECT();
+ HRGN clip_region = CreateRectRgnIndirect(&clip_rect);
+ SelectClipRgn(windowless_hdc_, clip_region);
+
// Before we send the invalidate, paint so that renderer uses the updated
// bitmap.
delegate_->Paint(windowless_hdc_, offset_rect);
+
+ SelectClipRgn(windowless_hdc_, NULL);
+ DeleteObject(clip_region);
}
void WebPluginProxy::UpdateGeometry(
« no previous file with comments | « no previous file | webkit/glue/plugins/test/npapi_test_plugin.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698