Index: chrome/plugin/command_buffer_stub.cc |
diff --git a/chrome/plugin/command_buffer_stub.cc b/chrome/plugin/command_buffer_stub.cc |
index d7dbf9fefea0235c9ebb489cb76edc066c91dcf9..4a9dd5c0e70d44ab617b9198538551a0375620ce 100644 |
--- a/chrome/plugin/command_buffer_stub.cc |
+++ b/chrome/plugin/command_buffer_stub.cc |
@@ -11,9 +11,9 @@ |
using gpu::Buffer; |
CommandBufferStub::CommandBufferStub(PluginChannel* channel, |
- gfx::NativeView view) |
+ gfx::PluginWindowHandle window) |
: channel_(channel), |
- view_(view) { |
+ window_(window) { |
route_id_ = channel->GenerateRouteID(); |
channel->AddRoute(route_id_, this, false); |
} |
@@ -54,7 +54,7 @@ void CommandBufferStub::OnInitialize(int32 size, |
Buffer buffer = command_buffer_->GetRingBuffer(); |
if (buffer.shared_memory) { |
processor_ = new gpu::GPUProcessor(command_buffer_.get()); |
- if (processor_->Initialize(view_)) { |
+ if (processor_->Initialize(window_)) { |
command_buffer_->SetPutOffsetChangeCallback( |
NewCallback(processor_.get(), |
&gpu::GPUProcessor::ProcessCommands)); |
@@ -93,7 +93,7 @@ void CommandBufferStub::OnGetTransferBuffer( |
int32 id, |
base::SharedMemoryHandle* transfer_buffer, |
size_t* size) { |
- *transfer_buffer = 0; |
+ *transfer_buffer = base::SharedMemoryHandle(); |
*size = 0; |
// Assume service is responsible for duplicating the handle to the calling |