summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorsehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-23 16:40:02 +0000
committersehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-23 16:40:02 +0000
commite867cd3e3fbde763ad744110b44a3ed534fc7d2f (patch)
treeabaa4ca710fc74287cd8c9928fc8e79bc75d805d /chrome/renderer
parentbcd9dc4cf88b89675eb605ffba94d345b33ee216 (diff)
downloadchromium_src-e867cd3e3fbde763ad744110b44a3ed534fc7d2f.zip
chromium_src-e867cd3e3fbde763ad744110b44a3ed534fc7d2f.tar.gz
chromium_src-e867cd3e3fbde763ad744110b44a3ed534fc7d2f.tar.bz2
Add the impl structure to the pepper 3D api. Needed for NaCl implementation to work.
Review URL: http://codereview.chromium.org/546123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/webplugin_delegate_pepper.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc
index fd7cc79..c5b0b14 100644
--- a/chrome/renderer/webplugin_delegate_pepper.cc
+++ b/chrome/renderer/webplugin_delegate_pepper.cc
@@ -53,6 +53,10 @@ struct Device2DImpl {
TransportDIB* dib;
};
+struct Device3DImpl {
+ gpu::CommandBuffer* command_buffer;
+};
+
uint32 WebPluginDelegatePepper::next_buffer_id = 0;
WebPluginDelegatePepper* WebPluginDelegatePepper::Create(
@@ -439,6 +443,10 @@ NPError WebPluginDelegatePepper::Device3DInitializeContext(
// Ensure the service knows the window size before rendering anything.
nested_delegate_->UpdateGeometry(window_rect_, clip_rect_);
+ // Save the implementation information (the CommandBuffer).
+ Device3DImpl* impl = new Device3DImpl;
+ impl->command_buffer = command_buffer_.get();
+ context->reserved = impl;
return NPERR_NO_ERROR;
}