summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/pepper_private2.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 19:46:06 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 19:46:06 +0000
commit1d01ed634bd4a4e3c15d89931aad1bfc62e0b6cd (patch)
treed0c01b2443bf1cb89824f906848e98426303acec /webkit/glue/plugins/pepper_private2.h
parentdb359dc0e51d8b28f6d93ce979cdf6e081f4211c (diff)
downloadchromium_src-1d01ed634bd4a4e3c15d89931aad1bfc62e0b6cd.zip
chromium_src-1d01ed634bd4a4e3c15d89931aad1bfc62e0b6cd.tar.gz
chromium_src-1d01ed634bd4a4e3c15d89931aad1bfc62e0b6cd.tar.bz2
Add some optimizations to plugin painting.
The simplest one is to disable blending when the plugin is opaque. The more complicated one is to bypass webkit painting the background of plugins when we know the plugin to be always on top and also opaque. The always on top flag is currently set by a new "Private2" API. Bypassing WebKit makes animations faster. BUG=none TEST=none Review URL: http://codereview.chromium.org/3421030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/pepper_private2.h')
-rw-r--r--webkit/glue/plugins/pepper_private2.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/webkit/glue/plugins/pepper_private2.h b/webkit/glue/plugins/pepper_private2.h
new file mode 100644
index 0000000..492669a
--- /dev/null
+++ b/webkit/glue/plugins/pepper_private2.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_
+#define WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_
+
+#include "webkit/glue/plugins/pepper_resource.h"
+
+struct PPB_Private2;
+
+namespace pepper {
+
+class Private2 {
+ public:
+ // Returns a pointer to the interface implementing PPB_Private2 that is
+ // exposed to the plugin.
+ static const PPB_Private2* GetInterface();
+};
+
+} // namespace pepper
+
+#endif // WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_