summaryrefslogtreecommitdiffstats
path: root/content/renderer/webplugin_delegate_proxy.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-10 03:08:05 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-10 03:08:05 +0000
commit4f15bb568f02c479ba56b40e3f17210414163d96 (patch)
treea1e0540cf16ed8c03dab17a015eb8d88ab32eb43 /content/renderer/webplugin_delegate_proxy.h
parent5d047becad4bb3eda071d0e940e721a2e42e1bed (diff)
downloadchromium_src-4f15bb568f02c479ba56b40e3f17210414163d96.zip
chromium_src-4f15bb568f02c479ba56b40e3f17210414163d96.tar.gz
chromium_src-4f15bb568f02c479ba56b40e3f17210414163d96.tar.bz2
Get windowless plugins working when accelerated compositing is turned on by copying the buffers using skia instead of OS specific ways that need the platform device.
Also remove the code that kept the background buffer in sync with plugins since it's not necessary anymore. Looks like Flash and Silverlight support this correctly now. Review URL: https://codereview.chromium.org/11361170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/webplugin_delegate_proxy.h')
-rw-r--r--content/renderer/webplugin_delegate_proxy.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/content/renderer/webplugin_delegate_proxy.h b/content/renderer/webplugin_delegate_proxy.h
index 2cab740..a4c1f1a 100644
--- a/content/renderer/webplugin_delegate_proxy.h
+++ b/content/renderer/webplugin_delegate_proxy.h
@@ -207,11 +207,6 @@ class WebPluginDelegateProxy
// Draw a graphic indicating a crashed plugin.
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.
- bool BackgroundChanged(gfx::NativeDrawingContext context,
- const gfx::Rect& rect);
-
// Copies the given rectangle from the back-buffer transport_stores_ bitmap to
// the front-buffer transport_stores_ bitmap.
void CopyFromBackBufferToFrontBuffer(const gfx::Rect& rect);
@@ -308,17 +303,10 @@ class WebPluginDelegateProxy
// True if we got an invalidate from the plugin and are waiting for a paint.
bool invalidate_pending_;
- // Used to desynchronize windowless painting. When WebKit paints, we bitblt
- // from our front buffer store of what the plugin rectangle looks like. The
- // plugin paints into the back buffer store, and we swap the buffers when we
- // get an invalidate from it. The background bitmap is used for transparent
- // plugins, as they need the background data during painting.
- bool transparent_;
// The index in the transport_stores_ array of the current front buffer
// (i.e., the buffer to display).
int front_buffer_index_;
SharedBitmap transport_stores_[2];
- SharedBitmap background_store_;
// This lets us know the total portion of the transport store that has been
// painted since the buffers were created.
gfx::Rect transport_store_painted_;