Convert plugin and GPU process to brokered handle duplication.

BUG=119250
Review URL: https://chromiumcodereview.appspot.com/9958034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132303 0039d316-1c4b-4281-b951-d872f2087c98
bool CommandBufferProxyImpl::Send(IPC::Message* msg) {
  DCHECK(last_state_.error == gpu::error::kNoError);

  if (channel_) {
    if (channel_->Send(msg)) {
      return true;
    } else {
      last_state_.error = gpu::error::kLostContext;
      return false;
    }
  }

  delete msg;
  return false;
}

bool CommandBufferProxyImpl::Send(IPC::Message* msg) {
  DCHECK(last_state_.error == gpu::error::kNoError);

  if (channel_) {
    if (channel_->Send(msg)) {
      return true;
    } else {
      last_state_.error = gpu::error::kLostContext;
      return false;
    }
  }

  delete msg;
  return false;
}
