summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_pepper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_pepper.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc
index c545c87..54f7ff5 100644
--- a/chrome/renderer/webplugin_delegate_pepper.cc
+++ b/chrome/renderer/webplugin_delegate_pepper.cc
@@ -71,7 +71,7 @@ struct Device3DImpl {
const int32 kDefaultCommandBufferSize = 1024 * 1024;
-} // namespace
+} // namespace
WebPluginDelegatePepper* WebPluginDelegatePepper::Create(
const FilePath& filename,
@@ -526,7 +526,7 @@ NPError WebPluginDelegatePepper::Device3DInitializeContext(
context->waitForProgress = true;
Buffer ring_buffer = command_buffer_->GetRingBuffer();
context->commandBuffer = ring_buffer.ptr;
- context->commandBufferSize = state.size;
+ context->commandBufferSize = state.num_entries;
context->repaintCallback = NULL;
Synchronize3DContext(context, state);